Get balance by wallet, token, and block number or timestamp.
GET/:network/balance/single
Get balance by wallet, token, and block number or timestamp.
Request
Path Parameters
Blockchain network name or chain id
Query Parameters
The wallet address or ENS name of the user.
The unique identifier (contract address) of the token.
Optional block number for which the balance is requested. Provide only block height or timestamp you want to check for.
Optional Date timestamp for which the balance is requested (ISO 8601 format). Provide only block height or timestamp you want to check for.
The id of your project. Can be found in your Histori dashboard.
Responses
- 200
- 400
- 404
The balance data for a specific block or timestamp.
- application/json
- Schema
- Example (from schema)
Schema
Blockchain network name For the requested query
The chain ID of the network.
The contract address of the token in hexadecimal format.
The name of the token.
The symbol of the token.
The ERC standard of the Token (erc20 or erc777)
The address of the token holder.
The balance amount of the holder for the token in wei.
The balance amount of the holder for the token denominated in ether.
The block number for which the balance is requested.
Timestamp for which the balance is queried (ISO 8601 format).
{
"network_name": "eth-mainnet",
"chain_id": 1,
"token_address": "0xF2ec4a773ef90c58d98ea734c0eBDB538519b988",
"token_name": "Doge 2.0",
"token_symbol": "DOGE2.0",
"token_type": "erc20",
"holder": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"balance": "42570000000000000000",
"balance_eth": "42,57",
"checked_at_block": 20853281,
"checked_at_date": "2024-09-29T02:22:23.000Z"
}
Invalid request parameters.
Historical Balance does not Exist for this holder.