Returns an object with data about the sync status or false.
Supported on Avalanche C-Chain (mainnet) only.
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_blockNumberhighestBlock
: QUANTITY - The estimated highest block
API Endpoint
The format of an Avalanche C-Chain API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/avalanche-c/ext/bc/C/rpc
- for RPC API
https://open-platform.nodereal.io/{{apiKey}}/avalanche-c/ext/bc/C/avax
- for AVAX API
Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/avalanche-c/ext/bc/C/rpc
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/avalanche-c/ext/bc/C/avax
Example
Request
curl https://open-platform.nodereal.io/{{apiKey}}/avalanche-c/ext/bc/C/rpc \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'
Result
{
"id":1,
"jsonrpc": "2.0",
"result": {
startingBlock: '0x384',
currentBlock: '0x386',
highestBlock: '0x454'
}
}