curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getMultipleAccounts",
"params": [
[
"7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"H8sMJSCQxfKiFTCfDR3DUMLPwcRbM61LGFJ8N4dK3WjS"
],
{
"encoding": "base64",
"slot": 411108200
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"apiVersion": "4.2.1",
"slot": 411108200
},
"value": [
{
"data": [
"",
"base64"
],
"executable": false,
"lamports": 1523847120,
"owner": "11111111111111111111111111111111",
"rentEpoch": 18446744073709552000,
"space": 0
},
null
],
"slots": [
411107934,
null
]
}
}Historical balances
Historical getMultipleAccounts RPC Method
Read up to 100 Solana accounts as they were at any past slot, in one request. Historical getMultipleAccounts parameters, limitations and examples.
POST
/
curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getMultipleAccounts",
"params": [
[
"7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"H8sMJSCQxfKiFTCfDR3DUMLPwcRbM61LGFJ8N4dK3WjS"
],
{
"encoding": "base64",
"slot": 411108200
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"apiVersion": "4.2.1",
"slot": 411108200
},
"value": [
{
"data": [
"",
"base64"
],
"executable": false,
"lamports": 1523847120,
"owner": "11111111111111111111111111111111",
"rentEpoch": 18446744073709552000,
"space": 0
},
null
],
"slots": [
411107934,
null
]
}
}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.
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.
commitmentis ignored, andminContextSlotcannot be combined with these options. valueholdsnullfor 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
-32033withdata.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
spaceare 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. AlastUpdateBeforeSlotorfirstUpdateAfterSlotwalk past the first or last known update returns-32020. dataSliceis not allowed withjsonParsedorjsonParsedEnhanced.
Body
application/json
Was this page helpful?