API Reference

eth_syncing - Optimism

Returns an object with data about the sync status or falseif the node is fully synced.

Note: Your response from eth_syncing will likely return false because Unifra only supports nodes in production that are completely synced.

Parameters

none


Returns

Object|Boolean, An object with sync status data or FALSE, when not 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://opt-mainnet.unifra.io/v1/your-api-key \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'
URL: https://opt-mainnet.unifra.io/v1/your-api-key
RequestType: POST
Body:
{
    "jsonrpc":"2.0",
    "method":"eth_syncing",
    "params":[],
    "id":1
}

Result

{
	"id": 1,
	"jsonrpc": "2.0",
	"result": false
}
Language
Click Try It! to start a request and see the response here!