1

I know $ cleos get currency stats eosio.token EOS reports the current supply in the blockchain, but how can I get the supply through time?

1 Answer 1

2

I think you can listen to the block with the issue event of eosio.token, only the issue action can update the supply.

3
  • But would this capture decrease of supply from mechanisms such as RAM fees which burn EOS?
    – confused00
    Jul 16, 2018 at 13:18
  • 1
    ram fee doesn't burn now, it maybe used by the community, there's no method to burn the token in eos.token
    – Jimmy Guo
    Jul 17, 2018 at 3:15
  • you're right, it seems like it transfers to N(eosio.ramfee) when selling ram, so to calculate circulating supply maybe i can deduct get_balance("eosio.ramfee") + get_balance("eosio.stake") + get_balance("eosio.ram")
    – confused00
    Jul 17, 2018 at 9:34

Your Answer

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

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