POST
/
efb0a5eccd2caa5135eb54eba6f7f300
curl --request POST \
  --url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_syncing",
  "id": 1
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {
    "startingBlock": "<string>",
    "currentBlock": "<string>",
    "highestBlock": "<string>"
  }
}

Optimism API method eth_syncing checks if the node is currently syncing with the blockchain. It provides details about the sync progress if the node is syncing.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • none — This method does not require any parameters.

Response

  • result — an object containing syncing details if the node is syncing; otherwise, false. The object includes:
    • startingBlock — the block number where the sync started.
    • currentBlock — the block number where the node is currently synced to.
    • highestBlock — the highest block number known in the chain that the node is syncing towards.

If the node is not syncing, the result will be false.

Use case

The eth_syncing method is useful for:

  • Monitoring tools and services that track the sync status of Optimism nodes.
  • Developers and users who want to check if a node is fully synced before making transactions or deploying contracts.

Body

application/json
jsonrpc
string
default:2.0
method
string
default:eth_syncing
id
integer
default:1

Response

200 - application/json
Syncing status of the node
jsonrpc
string
id
integer
result
object