REST API Integration

Integrate indexed blockchain data into your applications using the OpenScan.AI REST API.

The REST API is the primary integration surface: every page on xdcscan.io is backed by public endpoints you can call from any language. No proprietary SDK is required — the API is Blockscout-compatible, so standard HTTP and web3 libraries work directly.


When to use the API

  • Dashboards showing balances, transfers, or network stats
  • Backends that need transaction history or token holder data
  • Bots and automation reacting to on-chain events
  • Wallets and portfolio trackers
  • Analytics pipelines exporting chain data

Quick example

Terminal window
curl https://xdcscan.io/api/v2/addresses/0x1234567890abcdef1234567890abcdef12345678
const res = await fetch(
"https://xdcscan.io/api/v2/addresses/0x1234567890abcdef1234567890abcdef12345678",
);
const { coin_balance } = await res.json();
console.log(Number(coin_balance) / 1e18, "XDC");

Where to go next

The complete API documentation lives in the API Documentation section:

Interactive, try-it-now docs are at xdcscan.io/api-docs.