getAccountChanges
Returns every archived write to pubkey in [fromSlot, toSlot], newest first.
Parameters
pubkey(required) — base58 account pubkey.config(required) — see fields below.
Tips
To see only the writes that changed the account's contents, filter rows on
dataChangedwithincludeData: false— much cheaper than hydrating every row.writeVersionin a row can be passed straight back as an inside-slot cursor togetHistoricalAccountInfo/getMultipleHistoricalAccounts.
Authorizations
AuthorizationstringOptional
Pass Authorization: <api-key> on each request.
Body
jsonrpcstring · enumRequiredExample:
2.0Possible values: idone ofRequiredExample:
1stringOptional
integerOptional
methodstring · enumRequiredExample:
getAccountChangesPossible values: Responses
200
Successful response.
application/json
jsonrpcstring · enumRequiredPossible values:
idone ofRequired
stringOptional
integerOptional
400
Malformed JSON.
401
Authentication required or invalid.
application/json
403
Insufficient permissions for the request.
application/json
429
Rate limit exceeded for this tier.
application/json
500
Unexpected server error.
application/json
post/
curl -X POST https://rewind.solanavibestation.com \
-H "Content-Type: application/json" \
-H "Authorization: your-api-key-here" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getAccountChanges",
"params": [
"<pubkey>",
{
"fromSlot": 250000000,
"toSlot": 250100000,
"limit": 100
}
]
}'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"apiVersion": "rewind-0.4.0",
"slot": 250100000
},
"value": {
"changes": [
{
"slot": 250000123,
"writeVersion": 4567,
"lamports": 9876543210,
"owner": "<base58>",
"executable": false,
"rentEpoch": 361,
"space": 165,
"dataHash": "<hex>",
"txnSignature": "<base58>",
"dataChanged": true
}
],
"next": {
"slot": 250000050,
"writeVersion": 12
},
"truncatedByBytes": false,
"gaps": [
{
"fromSlot": 250000200,
"toSlot": 250000250,
"status": "missing"
}
]
}
}
}Last updated