Skip to main content
GET
Get Historical ERC20-Token Account Balance by BlockNo
This is a PRO endpoint, available to the Standard Plan and above
This endpoint is throttled to 2 calls/second regardless of API Pro tier.

Authorizations

apikey
string
query
required

Enter your Etherscan API key, or set one up if you don't have one.

Query Parameters

chainid
string
required

Chain ID to query, eg 1 for Ethereum, 42161 for Arbitrum from our supported chains.

module
string
default:account
required

Set to account for this endpoint.

action
string
default:tokenbalancehistory
required

Set to tokenbalancehistory for this endpoint.

contractaddress
string
required

Contract address of the ERC-20 token.

address
string
required

Address to check for balance.

blockno
integer
required

Block number to check balance for.

Response

200 - application/json

Successful response

status
string

1 if the request returned data, 0 otherwise. A status of 0 can indicate an error or a valid request that returned no records.

message
string

OK on success, otherwise an error description such as NOTOK. See common error messages.

result
string

Historical token balance at the given block, in the token's smallest unit.