description |
---|
Returns an object with data about the sync status or falseif the node is fully synced. |
{% hint style="success" %}
Note: Your response from eth_syncing
will likely return false because Alchemy only supports nodes in production that are completed synced.
{% endhint %}
none
Object|Boolean
, An object with sync status data or FALSE
, when not syncing:
startingBlock
:QUANTITY
- The block at which the import started (will only be reset, after the sync reached his head)currentBlock
:QUANTITY
- The current block, same as eth_blockNumberhighestBlock
:QUANTITY
- The estimated highest block
Request
{% tabs %} {% tab title="Curl" %}
curl https://eth-mainnet.alchemyapi.io/v2/your-api-key \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'
{% endtab %}
{% tab title="Postman" %}
URL: https://eth-mainnet.alchemyapi.io/v2/your-api-key
RequestType: POST
Body:
{
"jsonrpc":"2.0",
"method":"eth_syncing",
"params":[],
"id":1
}
{% endtab %} {% endtabs %}
Response
{
"id":1,
"jsonrpc": "2.0",
"result": false
}