Bitcoin Forum
June 14, 2024, 11:03:49 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: API call for sync status  (Read 645 times)
Goldy (OP)
Member
**
Offline Offline

Activity: 66
Merit: 10


View Profile WWW
May 01, 2013, 04:23:11 PM
 #1

Hello,

I would like to write a script to launch bitcoind each 24 hours and stop it after sync, but I don't find any API call to get the synchronization to the blockchain status.

Which API call should I use to know when bitcoind is synchronized to the network ?

Thanks  Smiley

QRaidCODE Developper : https://goldy.furry.fr/qraidcode/

NXT: NXT-HQ8D-3REJ-35RQ-B6UNL
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
May 01, 2013, 06:21:05 PM
 #2

I would like to write a script to launch bitcoind each 24 hours and stop it after sync, but I don't find any API call to get the synchronization to the blockchain status.

Which API call should I use to know when bitcoind is synchronized to the network ?

I don't know of any. If I were you, I would probably check against blockexplorer.com, blockchain.info and twitter.com/blockheaders, for example.
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!