Skip to main content
POST
/
getCompressedAccountsByOwner
cURL
curl --request POST \
  --url https://devnet.helius-rpc.com/getCompressedAccountsByOwner \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "test-account",
  "jsonrpc": "2.0",
  "method": "getCompressedAccountsByOwner",
  "params": {
    "owner": "111111131h1vYVSYuKP6AhS86fbRdMw9XHiZAvAaj",
    "cursor": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
    "dataSlice": {
      "length": 1,
      "offset": 1
    },
    "filters": [
      {
        "memcmp": {
          "bytes": "3J98t1WpEZ73CNm",
          "offset": 1
        }
      }
    ],
    "limit": 1
  }
}
'
{
  "id": "test-account",
  "jsonrpc": "2.0",
  "error": {
    "code": 123,
    "message": "<string>"
  },
  "result": {
    "context": {
      "slot": 100
    },
    "value": {
      "items": [
        {
          "hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
          "lamports": 100,
          "leafIndex": 100,
          "owner": "111111131h1vYVSYuKP6AhS86fbRdMw9XHiZAvAaj",
          "slotCreated": 100,
          "tree": "111111131h1vYVSYuKP6AhS86fbRdMw9XHiZAvAaj",
          "address": "111111131h1vYVSYuKP6AhS86fbRdMw9XHiZAvAaj",
          "data": {
            "data": "SGVsbG8sIFdvcmxkIQ==",
            "dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
            "discriminator": 100
          },
          "seq": 100
        }
      ],
      "cursor": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
    }
  }
}

Body

application/json
id
enum<string>
required

An ID to identify the request.

Available options:
test-account
jsonrpc
enum<string>
required

The version of the JSON-RPC protocol.

Available options:
2.0
method
enum<string>
required

The name of the method to invoke.

Available options:
getCompressedAccountsByOwner
params
object
required

Response

id
enum<string>
required

An ID to identify the response.

Available options:
test-account
jsonrpc
enum<string>
required

The version of the JSON-RPC protocol.

Available options:
2.0
error
object
result
object