githubEdit

eth_syncing - Celo

Example code for the eth_syncing JSON-RPC method. Complete guide on how to use eth_syncing JSON-RPC in GetBlock Web3 documentation.

The eth_syncing method returns an object with data about the sync status of the Celo node, or false if the node is fully synced. This is useful for monitoring node health and readiness.

Parameters

  • None

Request Example

curl -X POST https://go.getblock.io/<ACCESS-TOKEN>/ \
-H "Content-Type: application/json" \
-d '{
  "jsonrpc": "2.0",
  "id": "getblock.io",
  "method": "eth_syncing",
  "params": []
}'

Response Example

{
  "jsonrpc": "2.0",
  "id": "getblock.io",
  "result": false
}

Response Definition

Field
Type
Description

result

boolean/object

false if synced, or sync status object

Use Cases

  • Monitor node synchronization

  • Check node health before sending transactions

  • Implement health checks in applications

Error Handling

Error Code
Description

-32603

Internal error

SDK Integration

Last updated

Was this helpful?