POST
/
6df1a1b3061097e66349993a96b8e535
curl --request POST \
  --url https://aurora-mainnet.core.chainstack.com/6df1a1b3061097e66349993a96b8e535 \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_syncing",
  "params": []
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {}
}

Aurora 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 Aurora 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.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

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

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()

Use case

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

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_syncing
params
any[]

Response

200 - application/json
Syncing information
jsonrpc
string
id
integer
result
object