[go: up one dir, main page]

XDC Price: $0.0262 (+0.68%)
XDC API by Etherscan

The complete API for XDC data

Query XDC balances, transactions, tokens, contracts, and logs using the same Etherscan API that powers XDCScan, with one API key and chainid=50.

Trusted by teams at
Coinbase Coingecko Coingecko Metamask Metamask Binance
50
XDC Mainnet chain ID
51
XDC Testnet chain ID
60+ EVM Chains
with one API key
99.99%
uptime status

Why teams choose Etherscan API for XDC data

Explorer-grade blockchain data for teams that need accuracy, coverage, scale, and a clear path to multichain data from day one.

The first-choice API for XDC data

When teams need blockchain data they can defend in front of users, finance, or compliance, they start with the Etherscan API.

The reference layer for onchain data

Built with XDCScan data, the API is used as a reference point to verify balances, transfers, internal transactions, and contract activity on XDC.

Accuracy that holds up under scrutiny

Capture edge cases many providers miss and reduce time spent reconciling mismatched records across tools.

One integration, 60+ chains

Same endpoints, same structure, one API key across XDC and other chains. Just set chainid=50 for Mainnet or chainid=51 for Testnet.

XDC data through a familiar API

Use the same request parameters, response formats, and API conventions that power XDCScan and other Etherscan-supported explorers.

The default for mission-critical data

If blockchain data is mission-critical, Etherscan API is the default choice for teams that need accuracy and reliability.

How to start querying XDC with Etherscan API

Get an API key, set the XDC chain ID, and call the same endpoint structure used across 60+ EVM chains.

API key Active
YourApiKeyToken
One key for XDC + 60+ chains
Step 1

Get your API key

Create an Etherscan API key and use it for XDC Mainnet, Testnet, and other supported chains.

XDC Mainnet 50
XDC Testnet 51
chainid=50 V2
Step 2

Set the XDC chain ID

Pass chainid=50 for XDC Mainnet or chainid=51 for XDC Testnet in Etherscan API requests.

XDC query Ready
Balances & transfers
Contracts & logs
Tokens & receipts
Step 3

Call XDC endpoints

Use familiar account, token, contract, transaction, and log endpoints to pull XDCScan-grade indexed data into your app.

Single API to access all Endpoints & Metadata

Use Etherscan API with chainid=50 to query indexed XDC data through a familiar endpoint structure.

All Etherscan API Endpoints

View all our available endpoints on Etherscan API documentation.
View All Endpoints

What you can build with the XDC API

Build XDC wallets, accounting tools, security products, and analytics without operating a separate blockchain indexer.

XDC transaction reconciliation API visual XDC transaction reconciliation API visual XDC transaction reconciliation API visual

Transaction Reconciliation

Match XDC normal and internal transactions, token transfers, fees, timestamps, and execution status with ledger entries and imported wallet records.

Build with: /txlist /txlistinternal /getstatus and more
XDC tax and accounting API visual XDC tax and accounting API visual XDC tax and accounting API visual

Tax & Accounting

Turn XDC activity into tax filings, accounting workflows, and audit reports with internal transactions, token transfers, historical balances, and address metadata.

Build with: /tokenbalance /txlist /tokennfttx and more
XDC financial reporting API visual XDC financial reporting API visual XDC financial reporting API visual

Financial Reporting & Audit Evidence

Produce XDC period-end balance checks, transaction schedules, exception reports, and traceable source records for financial review.

Build with: /addresstokenbalance /balancehistory /getlogs and more
XDC NFT and digital asset reporting API visual XDC NFT and digital asset reporting API visual XDC NFT and digital asset reporting API visual

NFT & Digital Asset Reporting

Track XDC ERC-721 and ERC-1155 transfers, token IDs, counterparties, timestamps, and related transactions for ownership and disposal records.

Build with: /tokennfttx /token1155tx /getlogs and more

Multichain by Default

Turn your app to multichain with our API that supports over 60+ supported chains.

Start building on XDC today

Choose an Etherscan API plan and start querying XDC Mainnet data with chain ID 50.

Etherscan API supported chains