Accounts

Get XDC Balance for a Single Address

Returns the XDC balance of a given address.

https://api.xdcscan.com/api
   ?module=account
   &action=balance
   &address=0x0000000000000000000000000000000000000088
   &tag=latest
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the string representing the address to check for balance

tag

the string pre-defined block parameter, either earliest, pending or latest

Get XDC Balance for Multiple Addresses in a Single Call

Returns the balance of the accounts from a list of addresses.

https://api.xdcscan.com/api
   ?module=account
   &action=balancemulti
   &address=0xA488B8FdC6df7cAD537e88b66841F67B1cBB315B,0x0000000000000000000000000000000000000088,0x5e3F8F95d0D663f7b9CeB92e7e013f88319FcB43
   &tag=latest
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the strings representing the addresses to check for balance, separated by ,

up to 20 addresses per call

tag

the integer pre-defined block parameter, either earliest, pending or latest

Get a list of 'Normal' Transactions By Address

Returns the list of transactions performed by an address, with optional pagination.

​ ​ 📝 Note : This API endpoint returns a maximum of 10000 records, and 1000 records without an API Key

https://api.xdcscan.com/api
   ?module=account
   &action=txlist
   &address=0x5e3F8F95d0D663f7b9CeB92e7e013f88319FcB43
   &startblock=0
   &endblock=99999999
   &page=1
   &offset=10
   &sort=asc
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the string representing the addresses to check for balance

startblock

the integer block number to start searching for transactions

endblock

the integer block number to stop searching for transactions

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

sort

the sorting preference, use asc to sort by ascending and desc to sort by descendin Tip: Specify a smaller startblock and endblock range for faster search results.

Get a list of 'Internal' Transactions by Address

Returns the list of internal transactions performed by an address, with optional pagination.

https://api.xdcscan.com/api
   ?module=account
   &action=txlistinternal
   &address=0x0000000000000000000000000000000000000000
   &startblock=0
   &endblock=latest
   &page=1
   &offset=10
   &sort=asc
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the string representing the addresses to check for balance

startblock

the integer block number to start searching for transactions

endblock

the integer block number to stop searching for transactions

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

💡 Tip: Specify a smaller startblock and endblock range for faster search results

Get 'Internal Transactions' by Transaction Hash

Returns the list of internal transactions performed within a transaction.

📝 Note : This API endpoint returns a maximum of 10000 records, and 1000 records without an API Key

https://api.xdcscan.com/api
   ?module=account
   &action=txlistinternal
   &txhash=0x3190ee988c62654d52d15eb023d7b5727d2104024cad4625791281513127ffac
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

txhash

the string representing the transaction hash to check for internal transactions

Get "Internal Transactions" by Block Range

Returns the list of internal transactions performed within a block range, with optional pagination.

​​ 📝 Note : This API endpoint returns a maximum of 10000 records, and 1000 records without an API Key

https://api.xdcscan.com/api
   ?module=account
   &action=txlistinternal
   &startblock=1000013
   &endblock=1001013
   &page=1
   &offset=10
   &sort=asc
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startblock

the integer block number to start searching for transactions

endblock

the integer block number to stop searching for transactions

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get a list of 'XDC20- Token Transfer Events' by Address

Returns the list of XDC-20 tokens transferred by an address, with optional filtering by token contract.

https://api.xdcscan.com/api
   ?module=account
   &action=tokentx
   &contractaddress=0x4200000000000000000000000000000000000006
   &address=0xfcd3842f85ed87ba2889b4d35893403796e67ff1
   &page=1
   &offset=100
   &startblock=0
   &endblock=27025780
   &sort=asc
   &apikey=YourApiKeyToken

Usage:

  • XDC-20 transfers from an address, specify the address parameter

  • XDC-20 transfers from a contract address, specify the contract address parameter

  • XDC-20 transfers from an address filtered by a token contract, specify both address and contract address parameters.

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the string representing the address to check for balance

contractaddress

the string representing the token contract address to check for balance

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

startblock

the integer block number to start searching for transactions

endblock

the integer block number to stop searching for transactions

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get a list of 'XDC721 - Token Transfer Events' by Address

Returns the list of XDC-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract.

https://api.xdcscan.com/api
   ?module=account
   &action=tokennfttx
   &contractaddress=0x1fc10ef15e041c5d3c54042e52eb0c54cb9b710c
   &address=0xb82880e217478907cc9b1e5795d75d3257608ce0
   &page=1
   &offset=100
   &startblock=0
   &endblock=27025780
   &sort=asc
   &apikey=YourApiKeyToken

Usage:

  • XDC-721 transfers from an address, specify the address parameter

  • XDC-721 transfers from a contract address, specify the contract address parameter

  • XDC-721 transfers from an address filtered by a token contract, specify both address and contract address parameters.

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the string representing the address to check for balance

contractaddress

the string representing the token contract address to check for balance

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

startblock

the integer block number to start searching for transactions

endblock

the integer block number to stop searching for transactions

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get a list of 'XDC1155 - Token Transfer Events' by Address

Returns the list of XDC-1155 ( Multi Token Standard ) tokens transferred by an address, with optional filtering by token contract.

https://api.xdcscan.com/api
   ?module=account
   &action=token1155tx
   &contractaddress=0xba5e05cb26b78eda3a2f8e3b3814726305dcac83
   &address=0x8cd98dea4e95170f068e6d5aed1e7f1c285e7f77
   &page=1
   &offset=100
   &startblock=0
   &endblock=99999999
   &sort=asc
   &apikey=YourApiKeyToken

Usage:

  • XDC-1155 transfers from an address, specify the address parameter

  • XDC-1155 transfers from a contract address, specify the contract address parameter

  • XDC-1155 transfers from an address filtered by a token contract, specify both address and contract address parameters.

Try this endpoint in your browser 🔗

Last updated