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

getAccountDiff

getAccountDiff — Two-point diff for one account

post
/rewind

Two-point diff for a single account. Each side accepts the same positioning modes as getAccountInfo — end-of-slot via slotA/slotB, or per-transaction via anchorA/anchorB. Fields are suffixed A/B so both sides coexist in one config object.

Parameters

  1. pubkey (required) — base58.

  2. config (required) — see fields below.

Authorizations
AuthorizationstringOptional

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

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

Successful response.

application/json
jsonrpcstring · enumRequiredPossible values:
idone ofRequired
stringOptional
or
integerOptional
post/rewind
curl -X POST https://basic.rpc.solanavibestation.com/rewind \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getAccountDiff",
    "params": [
      "<pubkey>",
      {
        "anchorA": {
          "signature": "<sig>",
          "position": "before"
        },
        "anchorB": {
          "signature": "<sig>",
          "position": "after"
        }
      }
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "apiVersion": "rewind-1.1.0"
    },
    "value": {
      "a": {
        "lamports": 100000,
        "owner": "<base58>",
        "data": [
          "",
          "base64"
        ],
        "executable": false,
        "rentEpoch": 361,
        "space": 165,
        "rewindSlot": 249999998
      },
      "b": {
        "lamports": 112345,
        "owner": "<base58>",
        "data": [
          "",
          "base64"
        ],
        "executable": false,
        "rentEpoch": 361,
        "space": 165,
        "rewindSlot": 250100000
      },
      "diff": {
        "lamportsDelta": 12345,
        "ownerChanged": false,
        "executableChanged": false,
        "rentEpochDelta": 0,
        "dataChanged": true,
        "dataLenA": 165,
        "dataLenB": 165
      }
    }
  }
}

Last updated