Tokens
Endpoints with
are under the API Pro subscription. To upgrade your API plan, browse through the SnowTrace APIs page.
Returns the current amount of an ERC-20 token in circulation.
https://api.snowtrace.io/api
?module=stats
&action=tokensupply
&contractaddress=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
contractaddress | the contract address of the ERC-20 token |
Sample Response
{
"status": "1",
"message": "OK",
"result": "5913813116639975973318941"
}
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
Returns the current balance of an ERC-20 token of an address.
https://api.snowtrace.io/api
?module=account
&action=tokenbalance
&contractaddress=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7
&address=0xc05e61d0e7a63d27546389b7ad62fdff5a91aace
&tag=latest&apikey=YourApiKeyToken
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": "82478949244361932052353"
}
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
Returns the amount of an ERC-20 token in circulation at a certain block height.
Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.
📝
https://api.snowtrace.io/api
?module=stats
&action=tokensupplyhistory
&contractaddress=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7
&blockno=4000000
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
contractaddress | the contract address of the ERC-20 token |
blockno |
Sample Response
{
"status": "1",
"message": "OK",
"result": "7835368248615570386946043"
}
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
Returns the balance of an ERC-20 token of an address at a certain block height.
Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.
📝
https://api.snowtrace.io/api
?module=account
&action=tokenbalancehistory
&contractaddress=0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7
&address=0xc6e2a6a0ff870a1e156017ddcec5492ff6eb2b78
&blockno=32209104
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
contractaddress | the contract address of the ERC-20 token |
address | the string representing the address to check for balance |
blockno |
Sample Response
{
"status": "1",
"message": "OK",
"result": "18000472"
}
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
Returns project information and social media links of an ERC-20/ERC-721 token.
📝 Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.
https://api.snowtrace.io/api
?module=token
&action=tokeninfo
&contractaddress=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
contractaddress | the contract address of the ERC-20/ERC-721 token to retrieve token info |
Sample Response
{
"status": "1",
"message": "OK",
"result": [
{
"contractAddress": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
"tokenName": "Wrapped AVAX",
"symbol": "WAVAX",
"divisor": "18",
"tokenType": "ERC20",
"totalSupply": "5913857118881440294410453",
"blueCheckmark": "true",
"description": "Avalanche is the fastest smart contracts platform in the blockchain industry, as measured by time-to-finality, and has the most validators securing its activity of any proof-of-stake protocol.",
"website": "https://www.avax.network/",
"email": "",
"blog": "https://medium.com/avalancheavax",
"reddit": "https://www.reddit.com/r/avax",
"slack": "",
"facebook": "https://www.facebook.com/avalabsofficial/",
"twitter": "https://twitter.com/avalancheavax",
"bitcointalk": "",
"github": "https://github.com/ava-labs",
"telegram": "https://t.me/avalancheavax",
"wechat": "",
"linkedin": "https://www.linkedin.com/company/avalabsofficial/",
"discord": "https://chat.avax.network/",
"whitepaper": "https://www.avalabs.org/whitepapers",
"tokenPriceUSD": "13.1112177698"
}
]
}
Last modified 2mo ago