v1

latestOpenAPI 3.0.3Apache-2.02026-07-173866168.3 KB

post/getCompressedTokenBalancesByOwner

Request body

id'test-account' required

An ID to identify the request.

jsonrpc'2.0' required

The version of the JSON-RPC protocol.

method'getCompressedTokenBalancesByOwner' required

The name of the method to invoke.

Example request

{
  "params": {
    "cursor": "3J98t1WpEZ73CNm",
    "mint": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr",
    "owner": "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": {
      "cursor": "3J98t1WpEZ73CNm",
      "token_balances": [
        {
          "balance": 100,
          "mint": "111FJo4zLAGU9nzTWa6EnbV4VAmtG4FR8kcokrtZYr"
        }
      ]
    }
  }
}