Запрос
curl https://eth.l0vdinfra.com/YOUR_KEY \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"eth_syncing","params":[]}'
{
"jsonrpc": "2.0",
"id": 1,
"result": false
}
Параметры и свой эндпоинт
Параметры
У метода нет параметров.
Возвращает
boolean | object false when fully synced, otherwise an object with startingBlock, currentBlock and highestBlock.
Когда использовать
Check whether the node behind the endpoint is fully synced.
Как читать ответ
false when synced; otherwise an object with startingBlock, currentBlock and highestBlock.
Советы
- L0vd endpoints route only to synced nodes, so you should normally see false.
Связанные методы