BlockPI Network
Search
K
Comment on page

eth_syncing

Returns information about the sync status of the node

Parameters:

None

Returns:

Boolean (FALSE) - if the node isn't syncing (which means it has fully synced)
Object - an object with sync status data if the node is syncing
  • startingBlock: QUANTITY - The block at which the import started (will only be reset, after the sync reached his head)
  • currentBlock: QUANTITY - The current block, same as eth_blockNumber
  • highestBlock: QUANTITY - The estimated highest block

Example:

// Request
curl https://avalanche.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": false
}