For the complete documentation index, see llms.txt. This page is also available as Markdown.

getAccountChanges

getAccountChanges — Per-write change history for one account

post

Returns every archived write to pubkey in [fromSlot, toSlot], newest first.

Parameters

  1. pubkey (required) — base58 account pubkey.

  2. config (required) — see fields below.

Tips

  • To see only the writes that changed the account's contents, filter rows on dataChanged with includeData: false — much cheaper than hydrating every row.

  • writeVersion in a row can be passed straight back as an inside-slot cursor to getHistoricalAccountInfo / getMultipleHistoricalAccounts.

Authorizations
AuthorizationstringOptional

Pass Authorization: <api-key> on each request.

Body
jsonrpcstring · enumRequiredExample: 2.0Possible values:
idone ofRequiredExample: 1
stringOptional
or
integerOptional
methodstring · enumRequiredExample: getAccountChangesPossible values:
Responses
200

Successful response.

application/json
jsonrpcstring · enumRequiredPossible values:
idone ofRequired
stringOptional
or
integerOptional
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