Query indexed blockchain data from OpenScan.AI in a few lines of code.
This quick start fetches network stats, looks up an address, and lists its transactions. No API key is required — add one later for higher rate limits.
1. Fetch network stats
curl https://xdcscan.io/api/v2/stats2. Look up an address
curl https://xdcscan.io/api/v2/addresses/0x1234567890abcdef1234567890abcdef123456783. List an address’s transactions
curl https://xdcscan.io/api/v2/addresses/0x1234567890abcdef1234567890abcdef12345678/transactions4. Read a verified contract’s ABI
curl https://xdcscan.io/api/v2/smart-contracts/0xabcdefabcdefabcdefabcdefabcdefabcdefabcdAdding an API key
Anonymous requests share a fair-use limit. For production use, create a key via the Account API and send it with each request:
curl https://xdcscan.io/api/v2/stats -H "Authorization: Bearer YOUR_API_KEY"Next steps
- API Keys & Rate Limits — limits, headers, and 429 handling
- Examples — complete scripts: portfolio tracker, whale alerts, CSV exports
- API Reference — every endpoint in detail