> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.chainstack.com/feedback

```json
{
  "path": "/reference/avalanche-syncing",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# eth_syncing | Avalanche

Avalanche API method that returns an object with information about the current synchronization status of the node, or `false` if the node is fully synced. This method can track the progress of a node's synchronization with the Avalanche blockchain. The returned object contains data such as the starting block, current block, and highest block of the node, allowing developers to monitor and estimate the time remaining for the node to sync fully.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `none`

## Response

* `result` — the boolean value `false` when not syncing or a JSON object when syncing:
  * `startingBlock` — the block number where the synchronization process started, encoded as hexadecimal.
  * `currentBlock` — the block number that the node has currently processed, same as `eth_blockNumber`, encoded as hexadecimal.
  * `highestBlock` — the block number of the latest block in the blockchain known to the node.

## `eth_syncing` code examples

<CodeGroup>
  ```javascript web3.js theme={"system"}
  const Web3 = require("web3");
  const NODE_URL = "CHAINSTACK_NODE_URL";
  const web3 = new Web3(NODE_URL);

  async function syncStatus() {
    const status = await web3.eth.isSyncing();
    console.log(status)
  }

  syncStatus()
  ```

  ```javascript ethers.js theme={"system"}
  const ethers = require('ethers');
  const NODE_URL = "CHAINSTACK_NODE_URL";
  const provider = new ethers.JsonRpcProvider(NODE_URL);

  const syncStatus = async () => {
      const status = await provider.send("eth_syncing", []);
       console.log(status);
     };

  syncStatus();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3  
  node_url = "CHAINSTACK_NODE_URL" 
  print (web3.eth.syncing) 
  ```
</CodeGroup>

## Use case

The `eth_syncing` method on Avalanche can be useful for developers building applications that interact with the Avalanche blockchain. For example, you may want to provide feedback to your application's user about the status of the Avalanche node the application is connecting to.

Here is a code example using the web3.js library:

```javascript index.js theme={"system"}
const Web3 = require("web3");
const NODE_URL = "CHAINSTACK_NODE_URL";
const web3 = new Web3(NODE_URL);

async function syncstatus() {
    try {
        // Query the sync status
        const syncing = await web3.eth.isSyncing();

        if (syncing) {

            console.log(`Node is syncing. Current block: ${syncing.currentBlock}. Highest block: ${syncing.highestBlock}`);
        } else {

            console.log('Node is fully synced.');
        }
    } catch (error) {

        console.error(error);
    }
};

syncstatus()
```

In this example, the program creates a new `web3.js` instance and connects to the node. Then, it calls `web3.eth.isSyncing` to get the current synchronization status of the node. If the node is fully synced, the function logs a message to the console indicating that the node is fully synced.

If the node is still syncing, the function logs the current block number and the highest block number known to the node.


## OpenAPI

````yaml /openapi/avalanche_node_api/chain_info/eth_syncing.json POST /8763cb5a211e1d4345acd51bde484c00/ext/bc/C/rpc
openapi: 3.0.0
info:
  title: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: https://nd-418-459-126.p2pify.com
security: []
paths:
  /8763cb5a211e1d4345acd51bde484c00/ext/bc/C/rpc:
    post:
      tags:
        - Syncing
      summary: eth_syncing
      operationId: syncing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_syncing
                params:
                  type: array
                  default: []
      responses:
        '200':
          description: Syncing information
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````