Skip to main content

eth_syncing

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

Params

(0)

Result

(Syncing status)
(one of)
startingBlock
string
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
currentBlock
string
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
highestBlock
string
Match 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"
}

Request

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