Accounts

Get Xai Balance for a Single Address

Returns the Xai balance of a given address.

https://api.xaiscan.io/api
   ?module=account
   &action=balance
   &address=0x81ACC319a1A50C0FaeBd6882643A0CC8b6Da5A18
   &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 Xai Balance for Multiple Addresses in a Single Call

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

https://api.xaiscan.io/api
   ?module=account
   &action=balancemulti
   &address=0x41d2F3add533465d1038bFAC72855e8430f92eec,0x81ACC319a1A50C0FaeBd6882643A0CC8b6Da5A18,0xB8FF877ed78Ba520Ece21B1de7843A8a57cA47Cb,0xc3ac498cdfb6e1dcfa17cbc55e514560f26a1922
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the strings representing the addresses to check for balance, separated by , commas 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 only.

https://api.xaiscan.io/api
   ?module=account
   &action=txlist
   &address=0x81ACC319a1A50C0FaeBd6882643A0CC8b6Da5A18
   &startblock=0
   &endblock=99999999
   &page=1
   &offset=2
   &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 a list of 'Internal' Transactions by Address

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

https://api.xaiscan.io/api
   ?module=account
   &action=txlistinternal
   &address=0x81ACC319a1A50C0FaeBd6882643A0CC8b6Da5A18
   &startblock=0
   &endblock=99999999
   &page=1
   &offset=2
   &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.

https://api.xaiscan.io/api
   ?module=account
   &action=txlistinternal
   &txhash=0xfde1a894f0532396a7aa5d9b3d2e9b4a96b68138c3ea614733068c2e61705438
   &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.

https://api.xaiscan.io/api
   ?module=account
   &action=txlistinternal
   &startblock=0
   &endblock=latest
   &page=1
   &offset=2
   &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 'ERC20 - Token Transfer Events' by Address

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

https://api.xaiscan.io/api
   ?module=account
   &action=tokentx
   &contractaddress=0x8DF2CDec3ec9a8A65998c866422c152D3dA52fB2
   &address=0x81ACC319a1A50C0FaeBd6882643A0CC8b6Da5A18
   &page=1
   &offset=2
   &startblock=0
   &endblock=99999999
   &sort=asc
   &apikey=YourApiKeyToken

Usage:

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

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

  • ERC-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 'ERC721 - Token Transfer Events' by Address

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

https://api.xaiscan.io/api
   ?module=account
   &action=tokennfttx
   &contractaddress=0x299e90B375ceeA4c27bAe0ffdc7105F0BF0B5bE4
   &address=0x81ACC319a1A50C0FaeBd6882643A0CC8b6Da5A18
   &page=1
   &offset=2
   &startblock=0
   &endblock=99999999
   &sort=asc
   &apikey=YourApiKeyToken

Usage:

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

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

  • ERC-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 'ERC1155 - Token Transfer Events' by Address

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

https://api.xaiscan.io/api
   ?module=account
   &action=token1155tx
   &contractaddress=0xDCb313BC098b5b2A315EcAC5c3f3eAa6ddCd34E4
   &address=0x0000000000000000000000000000000000000000
   &page=1
   &offset=100
   &startblock=0
   &endblock=latest
   &sort=asc
   &apikey=YourApiKeyToken

Usage:

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

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

  • ERC-1155 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

Last updated