Accounts

Get Ether Balance for a Single Address

Returns the Ether balance of a given address.

https://api-sepolia-optimism.etherscan.io/api
   ?module=account
   &action=balance
   &address=0x00046e40b355D40a5b3731E9fd584ff4C3446Cd6
   &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-optimism.etherscan.io/api
   ?module=account
   &action=balancemulti
   &address=0x9b991b98f6c7cb053625b88e6fdfde3150aaa00f,0xee2306fddc532f289519ff3c10daec226df9a830,0xb9e30a19db28c756053f6fc91369859ae5f5cd09
   &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-optimism.etherscan.io/api
   ?module=account
   &action=txlist
   &address=0x9b991b98f6c7cb053625b88e6fdfde3150aaa00f
   &startblock=0
   &endblock=99999999
   &page=1
   &offset=10
   &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-optimism.etherscan.io/api
   ?module=account
   &action=txlistinternal
   &address=0xF198A1Af2682538E834bBc5F1af1847Cf50603E1
   &startblock=0
   &endblock=99999999
   &page=1
   &offset=10
   &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-optimism.etherscan.io/api
   ?module=account
   &action=txlistinternal
   &txhash=0x03e829d4ca789efecfbeccde8002e977b474f2762965c0c14584c4ae90c27dfb
   &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-optimism.etherscan.io/api
   ?module=account
   &action=txlistinternal
   &startblock=1203424
   &endblock=1204424
   &page=1
   &offset=10
   &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-optimism.etherscan.io/api
   ?module=account
   &action=tokentx
   &contractaddress=0x0091f4e75a03C11cB9be8E3717219005eb780D89
   &address=0xf198a1af2682538e834bbc5f1af1847cf50603e1
   &page=1
   &offset=100
   &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-optimism.etherscan.io/api
   ?module=account
   &action=tokennfttx
   &contractaddress=0x46E7b6b82F45a9e85c34595E2a5aE76cC67FF5Ba
   &address=0x93cffaf883bfdb964c5e66d7b599f8020d919d65
   &page=1
   &offset=100
   &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