eth_syncing
Returns an object with data about the sync status or false.
Params
(0)Result
(Syncing status)Syncing progress
(one of)
startingBlock
stringMatch pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
currentBlock
stringMatch pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
highestBlock
stringMatch pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
Example
Request
await window.ethereum.request({
"method": "eth_syncing",
"params": []
});
Result
{
"startingBlock": "0x0",
"currentBlock": "0x1518",
"highestBlock": "0x9567a3"
}