eth
eth_syncing
Returns the sync status of the node. When the node is fully synced, it returns false. When syncing, it returns an object with details about the sync progress.
Returns the sync status of the node. When the node is fully synced, it returns false. When syncing, it returns an object with details about the sync progress.
Parameters
None.
Returns
false -- When the node is not syncing (fully synced).
object -- When the node is syncing, an object with the following fields:
| Field | Type | Description |
|---|---|---|
startingBlock | string | The block at which the sync started (hex) |
currentBlock | string | The block the node is currently synced to (hex) |
highestBlock | string | The estimated highest block (hex) |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_syncing",
"params": [],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": false
}
TRY IT
Notes
- A result of
falseindicates the node is fully synced and up to date with the chain head. - When syncing, the returned object may include additional fields depending on the client implementation (e.g., Erigon may include stage-specific progress).
- This method is useful for health checks and monitoring scripts to verify the node is operational.
