Endpoint Showcase

Every screen on xdcscan.io is rendered from the same public REST API you can call directly at https://xdcscan.io/api/v2 — no API key required. This page maps each explorer UI page to the endpoints behind it, so you can rebuild anything you see in the UI.

Paths follow the Blockscout API v2 specification (OpenScan.AI’s API is Blockscout-compatible); confirm request and response fields in the interactive reference at xdcscan.io/api-docs. The examples below are available when the API is live — the service rate-limits aggressively, so back off and retry on HTTP 403/429.

Address page

UI: https://xdcscan.io/address/{hash}

UI sectionEndpoint
Balance, contract flag, metadataGET /api/v2/addresses/{hash}
Transactions tabGET /api/v2/addresses/{hash}/transactions
Token transfers tabGET /api/v2/addresses/{hash}/token-transfers
Internal transactions tabGET /api/v2/addresses/{hash}/internal-transactions
Token holdingsGET /api/v2/addresses/{hash}/token-balances
Counters (tx count, transfers, gas used)GET /api/v2/addresses/{hash}/counters
Balance history chartGET /api/v2/addresses/{hash}/coin-balance-history
Terminal window
curl -s "https://xdcscan.io/api/v2/addresses/0xYOUR_ADDRESS_HERE"
curl -s "https://xdcscan.io/api/v2/addresses/0xYOUR_ADDRESS_HERE/token-balances"

Transaction page

UI: https://xdcscan.io/tx/{hash}

UI sectionEndpoint
Status, block, value, fee, methodGET /api/v2/transactions/{hash}
Token transfersGET /api/v2/transactions/{hash}/token-transfers
Internal transactionsGET /api/v2/transactions/{hash}/internal-transactions
LogsGET /api/v2/transactions/{hash}/logs
State changesGET /api/v2/transactions/{hash}/state-changes
Terminal window
curl -s "https://xdcscan.io/api/v2/transactions/0xTX_HASH_HERE"

Token page

UI: https://xdcscan.io/token/{hash}

UI sectionEndpoint
Name, symbol, decimals, supplyGET /api/v2/tokens/{hash}
Holders tabGET /api/v2/tokens/{hash}/holders
Transfers tabGET /api/v2/tokens/{hash}/transfers
Counters (transfers, holders count)GET /api/v2/tokens/{hash}/counters
Terminal window
curl -s "https://xdcscan.io/api/v2/tokens/0xTOKEN_ADDRESS_HERE/holders"

Block page

UI: https://xdcscan.io/block/{height}

UI sectionEndpoint
Height, timestamp, gas, rewardsGET /api/v2/blocks/{height}
Transactions in the blockGET /api/v2/blocks/{height}/transactions
Terminal window
curl -s "https://xdcscan.io/api/v2/blocks/80000000"
curl -s "https://xdcscan.io/api/v2/blocks/80000000/transactions"

Contract page

UI: https://xdcscan.io/address/{hash}Contract tab

UI sectionEndpoint
Verified source, ABI, compilerGET /api/v2/smart-contracts/{hash}
Read methodsGET /api/v2/smart-contracts/{hash}/methods-read
Write methodsGET /api/v2/smart-contracts/{hash}/methods-write
Terminal window
curl -s "https://xdcscan.io/api/v2/smart-contracts/0xCONTRACT_ADDRESS_HERE"

Homepage and stats

UI: https://xdcscan.io and https://xdcscan.io/stats

UI sectionEndpoint
Chain stats (price, market cap, TPS)GET /api/v2/stats
Latest blocks widgetGET /api/v2/main-page/blocks
Latest transactions widgetGET /api/v2/main-page/transactions
Terminal window
curl -s "https://xdcscan.io/api/v2/stats"

Pagination

List endpoints return an items array plus next_page_params. Pass the fields of next_page_params back as query parameters to fetch the next page; when it is null, you have reached the end. See the wallet-history tutorial for a runnable pagination loop.

Keep exploring