eth_syncing
Returns an object with data about the sync status or false.
https://api.1inch.com/web3/8453
Supported on: Base
Request
Request
object jsonrpc
* string (Enum)JSON-RPC version
2.0
method
* string The method to call
params
array Method parameters
items
any id
* number Request ID
JavaScript
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/8453', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'eth_syncing',
params: [],
id: 1,
}),
});
const data = await response.json();
console.log(data);
Response
Syncing status
Syncing status
any oneOf[0]
object startingBlock
string currentBlock
string highestBlock
string additionalProperties
none oneOf[1]
boolean Should always return false if not syncing.
JSON
Copy
1
2
3
4
5
6
{
"startingBlock": "0x0",
"currentBlock": "0x1518",
"highestBlock": "0x9567a3"
}