curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getHistoricalSolBalances",
"params": [
{
"accounts": [
"7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"H8sMJSCQxfKiFTCfDR3DUMLPwcRbM61LGFJ8N4dK3WjS"
],
"slot": 411108200
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"balances": [
{
"account": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"amount": {
"raw": "1523847120",
"decimals": 9,
"uiAmount": 1.52384712,
"uiAmountString": "1.52384712"
},
"lastBalanceChange": {
"slot": 411107934,
"timestamp": 1775359359,
"previousAmount": {
"raw": "1523852120",
"decimals": 9,
"uiAmount": 1.52385212,
"uiAmountString": "1.52385212"
},
"amount": {
"raw": "1523847120",
"decimals": 9,
"uiAmount": 1.52384712,
"uiAmountString": "1.52384712"
},
"delta": {
"raw": "-5000",
"decimals": 9,
"uiAmount": -0.000005,
"uiAmountString": "-0.000005"
}
}
},
null
],
"found": 1
}
}Historical balances
getHistoricalSolBalances RPC Method
Read the SOL balance of up to 100 accounts at any past slot or timestamp. getHistoricalSolBalances RPC parameters 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": "getHistoricalSolBalances",
"params": [
{
"accounts": [
"7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"H8sMJSCQxfKiFTCfDR3DUMLPwcRbM61LGFJ8N4dK3WjS"
],
"slot": 411108200
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"balances": [
{
"account": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"amount": {
"raw": "1523847120",
"decimals": 9,
"uiAmount": 1.52384712,
"uiAmountString": "1.52384712"
},
"lastBalanceChange": {
"slot": 411107934,
"timestamp": 1775359359,
"previousAmount": {
"raw": "1523852120",
"decimals": 9,
"uiAmount": 1.52385212,
"uiAmountString": "1.52385212"
},
"amount": {
"raw": "1523847120",
"decimals": 9,
"uiAmount": 1.52384712,
"uiAmountString": "1.52384712"
},
"delta": {
"raw": "-5000",
"decimals": 9,
"uiAmount": -0.000005,
"uiAmountString": "-0.000005"
}
}
},
null
],
"found": 1
}
}Get the SOL balance of up to 100 accounts at one point in the past, in a single call. Each balance comes with the change that set it: its slot, time, the balance before and the signed delta.
- Pass exactly one of
slotortimestamp.timestampis Unix seconds. - The balance is the last one at or before that point.
lastBalanceChange.slotandtimestampbelong to that change, not to the point you asked for. balanceskeeps the order ofaccounts. An account that did not exist yet, or was closed with zero lamports, isnull;foundcounts the rest.- 1 to 100 accounts per request.
Body
application/json
Was this page helpful?