Bitcoin Forum
September 29, 2025, 02:10:20 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: Is there a non-trivial way to get the total number of coins in circulation? on: January 14, 2017, 05:38:36 PM
How about:

Code:
bitcoin-cli gettxoutsetinfo
And look for 'total_amount'
That's wonderful. Thank you for the help!!!!!!  Grin
2  Bitcoin / Development & Technical Discussion / Re: Is there a non-trivial way to get the total number of coins in circulation? on: January 14, 2017, 05:23:21 PM
You cannot add the value of the fees when doing this calculation, you can only add the block subsidies.

This is fairly easy to calculate since there is a fixed block subsidy schedule. The total number of Bitcoins created is 50*210000+25*210000+12.5*28167=16102087.5 BTC. Then subtract the 0.01000001 that were burned in block 124724 and the total is 16102087.48999999 BTC.

Those burned Bitcoin were from the miner (midnightmagic) not paying out the full amount he was entitled to from the block reward. The fees of that block (0.01 BTC) and one satoshi were burned and are now permanently out of circulation.
Sorry about that, I misspoke on fees. I should have said subsidy Smiley

I'm trying to do this in a way that doesn't rely on understanding the fee structure ahead of time. It's a long story, happy to explain at a later time if interested.

Thank you for the information!
3  Bitcoin / Development & Technical Discussion / Is there a non-trivial way to get the total number of coins in circulation? on: January 14, 2017, 04:41:30 PM
Speaking in regards to the current bitcoin-qt client (or litecoin-qt, or both would be even better.)

Looking through the code base I do not see a way to do this other than to manually add the value of each block + fees.

Am I overlooking something?

Thank you for the help.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!