How is the “live data” configured?
Block number, hashrate, mean block time, and circulating supply are all being pulled directly from the Zchain API.
Market capitalization and market price are being pulled directly from the CoinGecko API.
Calculations:
Blocks per day = 24 hours / mean block time
Zcash mined per day = blocks per day * current block rewards
Zcash inflation per day = Zcash mined per day * market price
Zcash left to mine = total Zcash to ever be produced – circulating supply
Halving date = Blocks left to mine / blocks per day
Why does the approximate halving date change you ask? This is because the formula for calculating the halving date takes the mean block time into account, which is constantly fluctuating around 150 seconds.
We could just use static 150 seconds as the variable, but then the countdown would not be as precise. Let us know what you prefer!
Have any more questions? Tweet or DM us @zcashhalving.
This website is not in association with the Electric Coin Company.