Accounts

Get Ether Balance for a Single Address

Returns the Ether balance of a given address.

https://api-sepolia.basescan.org/api
   ?module=account
   &action=balance
   &address=0xD8Ea779b8FFC1096CA422D40588C4c0641709890
   &tag=latest
   &apikey=YourApiKeyToken

Query Parameters

Get Ether Balance for Multiple Addresses in a Single Call

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

https://api-sepolia.basescan.org/api
   ?module=account
   &action=balancemulti
   &address=0xD8Ea779b8FFC1096CA422D40588C4c0641709890,0x3C352eA32DFBb757CCdf4b457E52daF6eCC21917,0xA7E4EF0a9e15bDEf215E2ed87AE050f974ECD60b
   &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-sepolia.basescan.org/api
   ?module=account
   &action=txlist
   &address=0xD8Ea779b8FFC1096CA422D40588C4c0641709890
   &startblock=0
   &endblock=latest
   &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-sepolia.basescan.org/api
   ?module=account
   &action=txlistinternal
   &address=0x2C7A1CaAC34549ef4D6718ECCF3120AC2f74Df5C
   &startblock=0
   &endblock=latest
   &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.

Note : This API endpoint returns a maximum of 10000 records only.

https://api-sepolia.basescan.org/api
   ?module=account
   &action=txlistinternal
   &txhash=0x1464fe536813fe2b87f8f828e89749c5667ecaa1bc0017f6ce3d55ae28f70cb2
   &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-sepolia.basescan.org/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-sepolia.basescan.org/api
   ?module=account
   &action=tokentx
   &contractaddress=0x35FD47E1324A6c4fAE96DF7fBff1Ed9689C1808E
   &address=0x7d0d1f76b34eddf60283f001982fee13ebc6ec0e
   &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-sepolia.basescan.org/api
   ?module=account
   &action=tokennfttx
   &contractaddress=0x7238cE8EEcACA4949284A3F0b7625068f49801D4
   &address=0xd2f235b03056b9439d86d91ba890598aaaad7c85
   &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

Last updated