Author

Topic: Latest block hash (Read 920 times)

full member
Activity: 148
Merit: 100
Crazy!
September 16, 2013, 12:54:40 PM
#6
Using bitcoind:

./bitcoind getblockcount
=> returns something like 258345

./bitcoind getblockhash 258345
=> returns the hash of the latest block like 000000000000001bca1bfe721ecf4fb6480835d966762bc840689ed86642c7b6

./bitcoind getblock 000000000000001bca1bfe721ecf4fb6480835d966762bc840689ed86642c7b6
=> returns the block in JSON format


Another possibility, use my service: http://coinplorer.com/BTC ; I'm currently improving the importation delays and will soon offer a push API to be notified of new blocks (websockets).
Coinplorer importation status can be found here: http://coinplorer.com/Console/Status2, updated in real time (but still some delay between importations, will be solved very soon).

If the blockchain changes (because I don't wait for the confirmations to come), the previous blocks gets deleted and replaced by the new ones!
staff
Activity: 4326
Merit: 8951
September 13, 2013, 11:47:42 AM
#5
You can get it out of bitcoind and bitcoin-qt.
legendary
Activity: 1890
Merit: 1089
Ian Knowles - CIYAM Lead Developer
September 13, 2013, 10:22:51 AM
#4
New blocks are found *on average* every 10 minutes - but I've seen it take an hour or even more before for a new block to be found (so probably nothing going wrong at either site).

At other times you might see as much as 6 new blocks found within 10 minutes.
legendary
Activity: 1122
Merit: 1017
ASMR El Salvador
September 13, 2013, 10:18:29 AM
#3
The same, the latest block there seems to be from one hour ago, not from ten minutes ago...
Wait, maybe it is because only after 6 confirmations it gets likely for it to persist in the blockchain. Is that it?
legendary
Activity: 1890
Merit: 1089
Ian Knowles - CIYAM Lead Developer
September 13, 2013, 10:14:10 AM
#2
You don't use blockchain.info for that?
legendary
Activity: 1122
Merit: 1017
ASMR El Salvador
September 13, 2013, 10:12:14 AM
#1
Is there any better than blockexplorer to keep up to date with the latest block hash. I find blockexplorer to lag a lot in having updated data.
Jump to: