0

How can one download the history of a native coin total issuance, via an API - Say DOT?

1 Answer 1

0
  1. open polkadot apps https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/explorer
  2. navigate to developer
  3. navigate to chain state
  4. select balances
  5. select total issuance
  6. 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 block 10000000 hash 0x6c51377632106ddba379416f2ef5e24450e90cee8c78a70daa262b2ae6f27e93

enter image description here

Finally, you can make these steps into a script.

Polkadot-JS API doc: https://polkadot.js.org/docs/substrate/storage#totalissuance-u128

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.