Skip to main content

eth_syncing

Ethereum API

Returns an object with data about the sync status or false.

Params

(0)

Result

(Syncing status)
(one of)
startingBlock
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
currentBlock
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
highestBlock
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$

Request

await window.ethereum.request({
"method": "eth_syncing",
"params": []
});