Contents

eth_syncing RPC method

Parameters:

  1. None

Returns:

  1. Result - Boolean (false) when not syncing or a JSON Object when syncing:

    startingBlock - The block at which the import started encoded as a hexadecimal.

    currentBlock - The current block, same as eth_blockNumber encoded as a hexadecimal.

    highestBlock - The estimated highest block encoded as a hexadecimal.

Code Examples:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":67}'
Ready to try QuickNode? Start your 7-day free trial