get Historical Token Account Balances
The balance of up to 100 token accounts at any past slot or timestamp.
2 credits a call. Free plan includes 500,000 credits a month.
What it returns
Pass token account addresses and one point in time. Each comes back with its owner, mint, amount and decimals, plus the change that set that balance.
It works for accounts that have since been closed, so it is the way to read a position that no longer exists.
What you can build
Cost basis and PnL
Read a position’s size at each trade to rebuild its profit and loss.
Governance snapshots
Check voting balances at the exact snapshot slot.
Vault and LP audits
See what a vault or pool account held at a past block.
Disputes
Answer “what did this account hold at slot X” with one call.
Call it
Replace the URL with your endpoint from the dashboard.
getHistoricalTokenAccountBalances2 credits
Request
curl "$SOLANA_RPC_URL" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "getHistoricalTokenAccountBalances", "params": [ { "accounts": [ "CSBvQkExysKY55vCQbrrQYCTpdkeGbYNx3ir42SmdhyK" ], "slot": 411108200 } ] }'
Response shape
{
"balances": [
{
"account": "CSBvQkExysKY55vCQbrrQYCTpdkeGbYNx3ir42SmdhyK",
"owner": "…",
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": {
"raw": "…",
"decimals": 6,
"uiAmount": "…",
"uiAmountString": "…"
},
"lastBalanceChange": {
"slot": "…",
"timestamp": "…"
}
}
],
"found": 1
}Parameters
- accountsstring[]
- 1 to 100 token account addresses.
- slotnumber
- The point in time as a slot. Set this or timestamp.
- timestampnumber
- The point in time as Unix seconds. Set this or slot.
Good to know
- Amounts are token units only; account rent is not included.
- A zero balance does not mean the account was closed.
Start calling getHistoricalTokenAccountBalances.
Free to start. Paid plans from €39 a month.