curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransactionsForAddress",
"params": [
"7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
{
"transactionDetails": "signatures",
"sortOrder": "desc",
"limit": 100
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"signature": "pY1P6ErC7avcEQCciNy2Qh5zeQCzmRe1WZcSD1dKzJsBY3dnD62wHdeDRDfbrF91mr54VGFXiJgYBr1pFuPCZNvC",
"slot": 411108200,
"transactionIndex": 1043,
"err": null,
"memo": null,
"blockTime": 1775359465,
"confirmationStatus": "finalized"
},
{
"signature": "Hkv83ke7Pzjhgk9h4XLwpveiceZG2JuFyETJcdGTJGBtC4T8ZRNLKWtiqrg5kh7cTRoPUHTVkpUoP5YgMuTghv1M",
"slot": 411108200,
"transactionIndex": 877,
"err": {
"InstructionError": [
2,
{
"Custom": 6001
}
]
},
"memo": null,
"blockTime": 1775359465,
"confirmationStatus": "finalized"
},
{
"signature": "6AirLzsjyFihBVk2aqEYcPEvy5TuNxq1RWDgxBc8t3FUMoYe2ma6a4m8FLr3zpHRVoXohXLp2s5eHk746wHvmFtN",
"slot": 411108174,
"transactionIndex": 812,
"err": null,
"memo": null,
"blockTime": 1775359455,
"confirmationStatus": "finalized"
}
],
"paginationToken": "eyJiIjoxNzc1MzU5NDU1LCJ0IjoxODYxNTk5MzE1ODg2ODkyLCJzIjo0MTExMDgxNzQsInAiOjIwMjYwNH0"
}
}History and transfers
getTransactionsForAddress RPC Method
Return an address’s full transaction history in one paged call, as signatures or full transactions, filtered by time, status or token. getTransactionsForAddress 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": "getTransactionsForAddress",
"params": [
"7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
{
"transactionDetails": "signatures",
"sortOrder": "desc",
"limit": 100
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"signature": "pY1P6ErC7avcEQCciNy2Qh5zeQCzmRe1WZcSD1dKzJsBY3dnD62wHdeDRDfbrF91mr54VGFXiJgYBr1pFuPCZNvC",
"slot": 411108200,
"transactionIndex": 1043,
"err": null,
"memo": null,
"blockTime": 1775359465,
"confirmationStatus": "finalized"
},
{
"signature": "Hkv83ke7Pzjhgk9h4XLwpveiceZG2JuFyETJcdGTJGBtC4T8ZRNLKWtiqrg5kh7cTRoPUHTVkpUoP5YgMuTghv1M",
"slot": 411108200,
"transactionIndex": 877,
"err": {
"InstructionError": [
2,
{
"Custom": 6001
}
]
},
"memo": null,
"blockTime": 1775359465,
"confirmationStatus": "finalized"
},
{
"signature": "6AirLzsjyFihBVk2aqEYcPEvy5TuNxq1RWDgxBc8t3FUMoYe2ma6a4m8FLr3zpHRVoXohXLp2s5eHk746wHvmFtN",
"slot": 411108174,
"transactionIndex": 812,
"err": null,
"memo": null,
"blockTime": 1775359455,
"confirmationStatus": "finalized"
}
],
"paginationToken": "eyJiIjoxNzc1MzU5NDU1LCJ0IjoxODYxNTk5MzE1ODg2ODkyLCJzIjo0MTExMDgxNzQsInAiOjIwMjYwNH0"
}
}Get the transaction history of any address, from its first transaction to the latest slot, with getTransactionsForAddress. Set
transactionDetails to signatures for signature rows, or to full for whole transactions in any encoding, so there is no getSignaturesForAddress plus getTransaction loop.
- Page size:
limitdefaults to 100. Pages hold up to 100 transactions withfulland up to 1,000 withsignatures. - Order:
sortOrderisdesc(newest first) by default, orasc(oldest first). Inside one slot, rows follow block order. - Paging: pass the returned
paginationTokenwith the same address, sort order and filters. Stop when a response has nopaginationToken; a page can hold fewer rows thanlimitwhile more remain. - Token accounts:
tokenAccounts: "balanceChanged"adds transactions that changed the balance of a token account the wallet owned, including accounts closed since.alladds every transaction of its current token accounts. - Windows: filter by
slot,blockTime,epochor a UTCday, and bystatusorhasError.beforeSlotanduntilSlotare exclusive shortcuts for the slot range.
mint, mints, excludeMints, tokenAccount, direction, minAmount, maxAmount, decimals and isNative select transactions by the wallet’s token balance changes. They are applied before the page limit, so pages stay full.
- All token filters must match the same balance change.
directionis the direction of that change, and amounts are raw token units. - Token filters need
confirmedorfinalizedcommitment and a closed window of at most 31 days or 6,696,000 slots. Adayorepochfilter meets this. - Token filters imply
tokenAccounts: "balanceChanged"and return -32602 withtokenAccounts: "all". - Unknown filter names return -32602 instead of being ignored.
sortOrder: "asc", limit: 1 and direction: "in".
Each call costs 5 credits and counts against the Full-history RPS limit, which getTransactionsForAddress shares with getTokenBalanceChangesForMint.
Request setup and error handling: RPC quickstart. Billing: credits and limits.Body
application/json
Was this page helpful?