How can one download the history of a native coin total issuance, via an API - Say DOT?
1 Answer
- open polkadot apps https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/explorer
- navigate to
developer
- navigate to
chain state
- select
balances
- select
total issuance
- if you want to know the total issuance at a specific block height, pass the block hash to the
blockhash to query at
field, e.g. I checked the block10000000
hash0x6c51377632106ddba379416f2ef5e24450e90cee8c78a70daa262b2ae6f27e93
Finally, you can make these steps into a script.
Polkadot-JS API doc: https://polkadot.js.org/docs/substrate/storage#totalissuance-u128