We're now supporting Polygon zkEVM!
Learn more here.

Contents

eth_syncing RPC Method

The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. none

Returns:

  1. result - The result is false if JSON Object is not syncing otherwise it's true:

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

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

    highestBlock - The estimated highest block encoded as hexadecimal

Code Examples:

require 'eth'

client = Eth::Client.create 'http://sample-endpoint-name.network.quiknode.pro/token-goes-here/'
payload = {
    "jsonrpc": "2.0",
    "method": "eth_syncing",
    "params": [],
    "id": "1"
}

response = client.send(payload.to_json)
puts response
Ready to get started? Create a free account