3

Is there some json-rpc command, so that I can get the blockchain synchronization status from geth.

I am trying to connect to the --testnet using get. Its taking forever to connect to the testnet, are there some reliable nodes to which I can connect to ?

2

For JSON-RPC there's eth_syncing:

// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'

// Result
{
  "id":1,
  "jsonrpc": "2.0",
  "result": {
    startingBlock: '0x384',
    currentBlock: '0x386',
    highestBlock: '0x454'
  }
}
// Or when not syncing
{
  "id":1,
  "jsonrpc": "2.0",
  "result": false
}

Geth is hardcoded with bootstrap nodes for testnet which should be among the most reliable. Make sure that your clock is in sync and check Why doesn't my Ethereum node have any peers?.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.