# Ethereum eth_syncing RPC method

Ethereum API method that returns an object with the sync status of the node when the node is out-of-sync and is syncing. Returns false when the node is already in sync.

Parameters:

  • none

Returns:

  • result — the boolean value false when not syncing, or a JSON object when syncing with:
    • startingBlock — the block at which the import started, encoded as hexadecimal.
    • currentBlock — the current block, same as eth_blockNumber, encoded as hexadecimal.
    • highestBlock — the estimated highest block, encoded as hexadecimal.

Example:

  • web3.js
  • web3.py
  • eth.rb
  • cURL
const Web3 = require("web3");
const node_url = "CHAINSTACK_NODE_URL";
const web3 = new Web3(node_url);
web3.eth.isSyncing((err, sync) => {
    console.log(sync)
})