curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSolBalanceChangesForAddress",
"params": [
"7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
{
"sortOrder": "desc",
"limit": 100
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"confirmationStatus": "finalized",
"change": {
"signature": "3cKcTTWWuVbqz1hVfEp9pvkmr2AyJ2rcd6XB2nGNpTwWUPzby5vgwvqLCe1vdwvxvemEjwMUiaaneWnxSJHRLgUy",
"account": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"direction": "in",
"amount": "2000000000",
"change": "2000000000",
"preBalance": "1523847120",
"postBalance": "3523847120",
"decimals": 9,
"uiAmount": 2,
"uiAmountString": "2",
"blockTime": 1775359525,
"slot": 411108350,
"accountIndex": 3,
"isSigner": false,
"isFeePayer": false
}
},
{
"confirmationStatus": "finalized",
"change": {
"signature": "5h6xBEauJ3PK6SWCZ1PGjBvj8vDdWG3KpwATGy1ARAXFSDwt8GFXM7W5Ncn16wmqokgpiKRLuS83KUxyZyv2sUYv",
"account": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"direction": "out",
"amount": "5000",
"change": "-5000",
"preBalance": "1523852120",
"postBalance": "1523847120",
"decimals": 9,
"uiAmount": -0.000005,
"uiAmountString": "-0.000005",
"blockTime": 1775359359,
"slot": 411107934,
"accountIndex": 0,
"isSigner": true,
"isFeePayer": true
}
}
],
"paginationToken": "eyJiIjoxNzc1MzU5MzU5LCJ0IjoxODYxNTk5MjE1MjIzMTk2LCJzIjo0MTExMDc5MzR9"
}
}Historical balances
getSolBalanceChangesForAddress RPC Method
Page every change to an address’s SOL balance, including fees, rent and tips, with before and after balances. getSolBalanceChangesForAddress 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": "getSolBalanceChangesForAddress",
"params": [
"7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
{
"sortOrder": "desc",
"limit": 100
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"confirmationStatus": "finalized",
"change": {
"signature": "3cKcTTWWuVbqz1hVfEp9pvkmr2AyJ2rcd6XB2nGNpTwWUPzby5vgwvqLCe1vdwvxvemEjwMUiaaneWnxSJHRLgUy",
"account": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"direction": "in",
"amount": "2000000000",
"change": "2000000000",
"preBalance": "1523847120",
"postBalance": "3523847120",
"decimals": 9,
"uiAmount": 2,
"uiAmountString": "2",
"blockTime": 1775359525,
"slot": 411108350,
"accountIndex": 3,
"isSigner": false,
"isFeePayer": false
}
},
{
"confirmationStatus": "finalized",
"change": {
"signature": "5h6xBEauJ3PK6SWCZ1PGjBvj8vDdWG3KpwATGy1ARAXFSDwt8GFXM7W5Ncn16wmqokgpiKRLuS83KUxyZyv2sUYv",
"account": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"direction": "out",
"amount": "5000",
"change": "-5000",
"preBalance": "1523852120",
"postBalance": "1523847120",
"decimals": 9,
"uiAmount": -0.000005,
"uiAmountString": "-0.000005",
"blockTime": 1775359359,
"slot": 411107934,
"accountIndex": 0,
"isSigner": true,
"isFeePayer": true
}
}
],
"paginationToken": "eyJiIjoxNzc1MzU5MzU5LCJ0IjoxODYxNTk5MjE1MjIzMTk2LCJzIjo0MTExMDc5MzR9"
}
}List every transaction that changed an address’s SOL balance. Each row has the signed change in lamports, the balance before and after, slot, block time, and whether the address signed or paid the fee. Fees, rent and tips show up, not only transfers.
- Newest first by default.
sortOrder: "asc"needs a lower bound on the first page:blockTimeorslotwithgte,gtoreq. - Filter with
direction(in,out,all),blockTimeandslotranges (gte,gt,lte,lt,eq; block time in Unix seconds), andminAbsChangein lamports. - Pages hold up to 1,000 rows (
limit, default 100). Pass the returnedpaginationTokenwith the same parameters to continue; the last page has none. signatureis omitted on the rare row whose signature could not be resolved.- For an address with very sparse activity spread over several years, add a
slotorblockTimewindow if a page comes back short.
Body
application/json
Was this page helpful?