eth_syncing method
Returns the sync status or false if the node is already synced
Parameters
Returns
Example
// Request
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "eth_syncing","params": []}' https://bsc-api.bwarelabs.com/<your-endpoint-id>
// Response
//Edpoint syncing
{
"jsonrpc":"2.0",
"id":1,
"result":{
"currentBlock":"0x4162f",
"highestBlock":"0x24511a",
"knownStates":"0x0",
"pulledStates":"0x0",
"startingBlock":"0x0"
}
}
//Endpoint fully synced
{
"jsonrpc": "2.0",
"id": 1,
"result": false
}Last updated