Optimism Etherscan
Search
⌃K
Links

Tokens

Get ERC20-Token TotalSupply by ContractAddress

Returns the current amount of an ERC-20 token in circulation.
https://api-optimistic.etherscan.io/api
?module=stats
&action=tokensupply
&contractaddress=0xda10009cbd5d07dd0cecc66161fc93d7c9000da1
&apikey=YourApiKeyToken
Try this endpoint in your browser
🔗
​
Request
Response
Query Parameters
Parameter
Description
contractaddress
the contract address of the ERC-20 token
Sample Response
{
"status":"1",
"message":"OK",
"result":"118259239202407577727777940"
}
​
📈
Tip : The result is returned in the token's smallest decimal representation.
Eg. a token with a balance of 215.241526476136819398 and 18 decimal places will be returned as 215241526476136819398

Get ERC20-Token Account Balance for TokenContractAddress

Returns the current balance of an ERC-20 token of an address.
https://api-optimistic.etherscan.io/api
?module=account
&action=tokenbalance
&contractaddress=0xda10009cbd5d07dd0cecc66161fc93d7c9000da1
&address=0xbf16ef186e715668aa29cef57e2fd7f9d48adfe6
&tag=latest&apikey=YourApiKeyToken
Try this endpoint in your browser
🔗
​
Request
Response
Query Parameters
Parameter
Description
contractaddress
the contract address of the ERC-20 token
address
the string representing the address to check for token balance
Sample Response
{
"status":"1",
"message":"OK",
"result":"2691775037816083725131450"
}
​
📈
Tip : The result is returned in the token's smallest decimal representation.
Eg. a token with a balance of 215.241526476136819398 and 18 decimal places will be returned as 215241526476136819398