Skip to main content
POST
Get a wallet’s token holdings as they were at a past slot or timestamp. Each token account comes back with its mint, amount and the change that set it. Leave out both slot and timestamp to get current holdings.
  • Set at most one of slot or timestamp (Unix seconds).
  • Filter to one token with mint, and skip empty accounts with excludeZeroBalance: true.
  • Pages hold up to 500 accounts (limit, default 100). Pass the returned paginationToken to get the next page, with the same owner, mint, point in time and excludeZeroBalance. The last page has no paginationToken.
  • A token account that was closed long ago can be missing from this list. Read it directly with getHistoricalTokenAccountBalances.
  • Amounts are token units only; rent lamports are not included.
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:getHistoricalTokenAccountsByOwner
required

The name of the RPC method to invoke.

Available options:
getHistoricalTokenAccountsByOwner
Example:

"getHistoricalTokenAccountsByOwner"

params
object[]
required

A single configuration object with the wallet, point in time, filters and paging.

Response

A page of historical token accounts for the wallet.

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

One page of token accounts.