Docs
Supported ChainsXDC NetworkJSON-RPC APINetwork Methods

eth_syncing - XDC Network RPC Method

Check sync status on XDC Network. Essential for node health monitoring.

Returns syncing status of XDC Network node.

Request Parameters

Request

This method accepts no parameters.

Response Body

Response

Code Examples

Bash
curl -X POST https://api-xdc-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_syncing",
    "params": [],
    "id": 1
  }'
JavaScript
import { JsonRpcProvider } from 'ethers';

const provider = new JsonRpcProvider('https://api-xdc-mainnet.n.dwellir.com/YOUR_API_KEY');

const syncing = await provider.send('eth_syncing', []);
if (syncing === false) {
  console.log('Node is fully synced');
} else {
  console.log('Syncing:', syncing);
}

On this page