eth_syncing - Ethereum

Shows the synchronization status or returns false

How to Use the eth_syncing Method

Parameters

No parameters.

What you receive

Object|Boolean, An object with synchronization status data or FALSE, if not syncing:

  • startingBlock: QUANTITY - the first block where import starts (resets only after the sync reaches his head)

  • currentBlock: QUANTITY - The actual block, given the same recall as eth_blockNumber

  • highestBlock: QUANTITY - The estimated highest block

Sample

Here is a typical appliance example.

Call

curl https://eth-mainnet.rpcfast.com/?api_key=<key> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'

Outcome

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    startingBlock: '0x384',
    currentBlock: '0x386',
    highestBlock: '0x454'
  }
}

Last updated