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
I think you can listen to the block with the issue event of eosio.token, only the issue action can update the supply.
-
But would this capture decrease of supply from mechanisms such as RAM fees which burn EOS? Jul 16, 2018 at 13:18
-
1ram fee doesn't burn now, it maybe used by the community, there's no method to burn the token in eos.token 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 deductget_balance("eosio.ramfee") + get_balance("eosio.stake") + get_balance("eosio.ram")
Jul 17, 2018 at 9:34