2

Is there an easy way to calculate the currently circulating supply using daemon RPC calls?

LevelingUp
  • 23
  • 2

1 Answers1

1

There is the get_coinbase_tx_sum RPC call which takes height and count parameters, and returns how many moneros were created between block height and block height + count.

So by setting height to zero and count to the current block height, you get the current money supply (the daemon might take some time to compute everything at once though).

glv
  • 3,364
  • 11
  • 15