I am develop a safely and quickly trade platform now,
but I don't found any interface to fetch the currently mining total of bitcoin,
Does anyone know this? thanks.
Currently mining total?
Do you mean the current block height that has been mined?
- You can get this from bitcoind with the API call "getblockcount"
Do you mean the current block reward?
- In that case you can determine the current era by dividing the current block height by 210000 and throw away the remainder. The current block reward is 50*((1/2)era) when rounded down to the nearest hundred millionth
Do you mean the current total bitcoins in existence?
- In that case, it can be computed by era(210000) + (blockheight modulo 210000)(current block reward)
Do you mean the current total amount of hash power in the world working on mining bitcoin blocks?
- It is impossible to know exactly what this number is, but it can be reasonable estimated from the current difficulty. The estimation is calcualted as difficulty(7158388.055)
Thank you very much.
I am mean the current total bitcoins in existence. :-)
I am plan to support many peer-to-peer Internet/digital currency on my trading platform,
so I must to computed the current total one by one now.
It sounds so strange that why the bitcoin implement don't include this value in current block,
and provide a interface to read it, that just cost 16 bytes.