Bitcoin Forum
May 07, 2024, 06:53:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: API call for sync status  (Read 643 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
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715108000
Hero Member
*
Offline Offline

Posts: 1715108000

View Profile Personal Message (Offline)

Ignore
1715108000
Reply with quote  #2

1715108000
Report to moderator
1715108000
Hero Member
*
Offline Offline

Posts: 1715108000

View Profile Personal Message (Offline)

Ignore
1715108000
Reply with quote  #2

1715108000
Report to moderator
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!