Skip to main content
POST
Get the balance of up to 100 token accounts at one point in the past. Each entry has the account’s owner, mint, amount and decimals, plus the change that set that balance. It also works for token accounts that have since been closed.
  • Pass token account addresses, not wallets, and exactly one of slot or timestamp (Unix seconds).
  • The balance is the last one at or before that point. lastBalanceChange.slot and timestamp belong to that change, not to the point you asked for.
  • balances keeps the order of accounts; an account with no known balance at that point is null.
  • Amounts are token units only. The account’s rent lamports are not included; use getAccountInfo with slot for the full account.
  • A zero balance does not mean the account was closed.
  • 1 to 100 accounts per request.
Cost: 2 credits per call, counted against General RPS. Request setup and error handling: RPC quickstart. Billing: credits and limits.

Authorizations

api_key
string
query
required

Body

application/json
jsonrpc
enum<string>
required

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string
required

A unique identifier for the request.

Example:

"1"

method
enum<string>
default:getHistoricalTokenAccountBalances
required

The name of the RPC method to invoke.

Available options:
getHistoricalTokenAccountBalances
Example:

"getHistoricalTokenAccountBalances"

params
object[]
required

A single configuration object with the token accounts and one point in time.

Response

Historical token account balances in request order.

jsonrpc
enum<string>

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string

Identifier matching the request.

Example:

"1"

result
object

Balances in request order.