SDK Quick Start

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/stats

2. Look up an address

curl https://xdcscan.io/api/v2/addresses/0x1234567890abcdef1234567890abcdef12345678

3. List an address’s transactions

curl https://xdcscan.io/api/v2/addresses/0x1234567890abcdef1234567890abcdef12345678/transactions

4. Read a verified contract’s ABI

curl https://xdcscan.io/api/v2/smart-contracts/0xabcdefabcdefabcdefabcdefabcdefabcdefabcd

Adding 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