v1

latestOpenAPI 3.0.3Apache-2.02026-07-173866168.3 KB

post/getAccountInterface

Request body

id'test-account' required

An ID to identify the request.

jsonrpc'2.0' required

The version of the JSON-RPC protocol.

method'getAccountInterface' required

The name of the method to invoke.

Example request

{
  "params": {
    "address": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr"
  }
}

Response

id'test-account' required

An ID to identify the response.

jsonrpc'2.0' required

The version of the JSON-RPC protocol.

Example response

{
  "result": {
    "context": {
      "slot": 100
    },
    "value": {
      "account": {
        "data": "SGVsbG8sIFdvcmxkIQ==",
        "lamports": 100,
        "owner": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr",
        "rentEpoch": 100,
        "space": 100
      },
      "cold": [
        {
          "address": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr",
          "data": {
            "data": "SGVsbG8sIFdvcmxkIQ==",
            "dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
            "discriminator": 100
          },
          "hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
          "lamports": 100,
          "leafIndex": 100,
          "merkleContext": {
            "cpiContext": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr",
            "nextTreeContext": {
              "cpiContext": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr",
              "queue": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr",
              "tree": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr"
            },
            "queue": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr",
            "tree": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr"
          },
          "owner": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr",
          "seq": 100,
          "slotCreated": 100
        }
      ],
      "key": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr"
    }
  }
}
All 38 operations