
Calculating circulating supply for coins with premine
A lot of statistics sites require circulating supply for coins to calculate other metrics... Circulating supply is not same as total number of mined coins when the coin has premine.
To calculate circulating supply, one must subtract total balance of premine wallet from total number of mined coins.
This can be done using CGI script that fetch last block header from node daemon, or if node daemon has own JSON method for getting total number of mined coins, using that JSON method.
Getting balance of premine wallet requires running wallet daemon on the same server with premine wallet opened.
Using simple shell script, calculating circulating supply requires curl, jq and expr. Output from curl is passed to jq command to parse the JSON output. expr command does the final subtraction using result from node daemon, and unlocked and locked balances from wallet daemon.
Leave Calculating circulating supply for coins with premine to:
Read more #cryptocurrency posts
Best Posts From Mika
We have not curated any of mtl1979's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Mika
- How to use MyHeritage Family Tree Builder without subscribing...
- PayPal launches its own stablecoin PYUSD... Is it safe or not?
- Design limitations of responsive websites
- April 1st, 2023 marks end of mainstream support of Ubuntu 18.04
- Understanding the Ethereum London Revised scam...
- How to use PancakeSwap for creating trading pair, swapping, buying and selling tokens - Part 2
- How to use PancakeSwap for creating trading pair, swapping, buying and selling tokens - Part 1
- How to combat abuse of token bridges...
- Finnish food and drink company recalls potato chips due to potential overdose...
- Why it is bad idea to let Ubuntu upgrade Python to 3.10...