Bitcoin Forum
September 13, 2025, 06:05:12 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Latest block hash  (Read 922 times)
remotemass (OP)
Legendary
*
Offline Offline

Activity: 1122
Merit: 1017


ASMR El Salvador


View Profile WWW
September 13, 2013, 03:12:14 PM
 #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.

" PetroPayPal ≠ PayPal. Sats > petrocash. Stack free. " — #Cubic #Postcode.
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1111


Ian Knowles - CIYAM Lead Developer


View Profile WWW
September 13, 2013, 03:14:10 PM
 #2

You don't use blockchain.info for that?

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
remotemass (OP)
Legendary
*
Offline Offline

Activity: 1122
Merit: 1017


ASMR El Salvador


View Profile WWW
September 13, 2013, 03:18:29 PM
 #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?

" PetroPayPal ≠ PayPal. Sats > petrocash. Stack free. " — #Cubic #Postcode.
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1111


Ian Knowles - CIYAM Lead Developer


View Profile WWW
September 13, 2013, 03:22:51 PM
 #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.

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4508
Merit: 9755



View Profile WWW
September 13, 2013, 04:47:42 PM
 #5

You can get it out of bitcoind and bitcoin-qt.
crazydownloaded
Full Member
***
Offline Offline

Activity: 148
Merit: 100

Crazy!


View Profile
September 16, 2013, 05: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!

Est. February 2012
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!