Skip to main content
POST
Read up to 100 accounts as they were in the past with the standard getMultipleAccounts method. Add one of these to the config object:
  • slot: every account as of the end of that slot.
  • lastUpdateBeforeSlot: each account as of its own last update strictly before that slot.
  • firstUpdateAfterSlot: each account as of its own first update strictly after that slot.
Set exactly one. Without any of them, getMultipleAccounts returns the accounts as they are now: see getMultipleAccounts. Results are in input order. With lastUpdateBeforeSlot and firstUpdateAfterSlot the accounts can come from different slots, so the result adds slots: one slot per account, in input order, null where an account has no update on that side.

Limitations

  • Historical reads return finalized data. commitment is ignored, and minContextSlot cannot be combined with these options.
  • value holds null for an account that did not exist or was closed at that point, or when no data is known for it.
  • SPL Token and Token-2022 mint accounts cannot be read historically: they return error -32033 with data.reason: "splTokenMint", and one such address fails the whole request. Stake, vote, config and sysvar accounts also return -32033.
  • Token accounts are rebuilt from their balance history. Balance, mint, owner and rent lamports are returned; Token-2022 extensions, delegate, frozen state, close authority and exact space are not.
  • A slot after the latest available slot returns -32030, one before the earliest returns -32031, and a slot with no data available returns -32034. A lastUpdateBeforeSlot or firstUpdateAfterSlot walk past the first or last known update returns -32020.
  • dataSlice is not allowed with jsonParsed or jsonParsedEnhanced.
A historical read costs 1 credit, the same as the live call. To walk one account’s history with earlier versions, use historical getAccountInfo. Request setup and error handling: RPC quickstart. Billing: credits and limits.

Authorizations

api_key
string
query
required

Body

application/json
jsonrpc
enum<string>
default:2.0
required

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string
default:1
required

A unique identifier for the request.

Example:

"1"

method
enum<string>
default:getMultipleAccounts
required

The name of the RPC method to invoke.

Available options:
getMultipleAccounts
Example:

"getMultipleAccounts"

params
(string[] | object)[]
required

Parameters for the method.

Minimum array length: 2

Array of Solana account addresses (up to 100) to fetch in a single optimized batch request.

Example:

Response

Successfully retrieved the account details.

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

Accounts information with context.