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

Query Parameters

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

Query Parameters

Get a list of 'Normal' Transactions By Address

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

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

Query Parameters

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

Query Parameters

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

Query Parameters

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

Query Parameters

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.

Query Parameters

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.

Query Parameters

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.

Query Parameters

Last updated