eth_syncing method

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

1
// Request
2
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "eth_syncing","params": []}' https://dusty-api.bwarelabs.com/<your-endpoint-id>
3
4
// Response
5
6
{
7
"jsonrpc":"2.0",
8
"id":1,
9
"result": {
10
"currentBlock":"0xa4e747",
11
"highestBlock":"0xa4e78f",
12
"knownStates":"0x1012228e",
13
"pulledStates":"0x10120b55",
14
"startingBlock":"0xa4e63d"
15
}
16
}
Copied!
Last modified 3mo ago
Copy link