XDCScan
XDCScan
XDCScan
  • Introduction
  • ✨Getting Started
    • Creating an Account
    • Getting an API key
    • Endpoint URLs
  • 🎯API Endpoints
    • Accounts
    • Contracts
    • Transactions
    • Blocks
    • Logs
    • Geth/Parity Proxy
    • Tokens
    • Stats
  • 🤝Support
    • FAQ
    • Rate Limits
    • Common Error Messages
    • Common Verification Errors
    • Getting Help
  • Visit XDCScan.com
Powered by GitBook
On this page
  • Get XDC20-Token TotalSupply by ContractAddress
  • Get XDC20-Token Account Balance for TokenContractAddress
Export as PDF
  1. API Endpoints

Tokens

PreviousGeth/Parity ProxyNextStats

Last updated 7 months ago

Get XDC20-Token TotalSupply by ContractAddress

Returns the current amount of an XDC-20 token in circulation.

https://api.xdcscan.com/api
   ?module=stats
   &action=tokensupply
   &contractaddress=0xa3044b2a9ae8073ecc4e277f6246b3b00fc93553
   &apikey=YourApiKeyToken

Try this endpoint in your

Query Parameters

Parameter
Description

contractaddress

the contract address of the ERC-20 token

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":"1000000000000000000000000000000000"
}

Tip : The result is returned in the token's smallest decimal representation.

Eg. a token with a balance of 215.241526476136819398 and 18 decimal places will be returned as 215241526476136819398

Get XDC20-Token Account Balance for TokenContractAddress

Returns the current balance of an XDC-20 token of an address.

https://api.xdcscan.com/api
   ?module=account
   &action=tokenbalance
   &contractaddress=0xa3044b2a9ae8073ecc4e277f6246b3b00fc93553
   &address=0x171f87d13c5819a819702637f2120db793f7bcca
   &tag=latest&apikey=YourApiKeyToken

Try this endpoint in your

🎯
🔗
📈
browser
🔗
browser