Skip to main content
POST
Read an account as it was in the past with the standard getAccountInfo method. Add one of these to the config object:
  • slot: the account as of the end of that slot.
  • lastUpdateBeforeSlot: the account as of its last update strictly before that slot.
  • firstUpdateAfterSlot: the account as of its first update strictly after that slot.
Set exactly one. Without any of them, getAccountInfo returns the account as it is now: see getAccountInfo.

Walk an account’s history

With lastUpdateBeforeSlot and firstUpdateAfterSlot, context.slot is the slot of the update returned. Pass it back to step through the account’s history one update at a time. Add changes (1 to 20) to also get that many earlier versions in result.changes, newest first, each with its slot, blockTime and txnSignature.

Limitations

  • Historical reads return finalized data. commitment is ignored, and minContextSlot cannot be combined with these options.
  • value is null when the account 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". 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. For many accounts at once, use historical getMultipleAccounts. Request setup and error handling: RPC quickstart. Billing: credits and limits.

Authorizations

api_key
string
query
required

Body

application/json
jsonrpc
enum<string>
required
Available options:
2.0
id
integer
required
method
enum<string>
required
Available options:
getAccountInfo
params
any[]
required
Required array length: 2 elements

Response

200 - application/json

Successful response

jsonrpc
enum<string>
Available options:
2.0
result
object
id
integer