---
title: "POST /getCompressedTokenAccountsByOwner"
method: POST
path: "/getCompressedTokenAccountsByOwner"
---

# POST /getCompressedTokenAccountsByOwner

`POST /getCompressedTokenAccountsByOwner`

## Request body

- object
  - `id` 'test-account', required — An ID to identify the request.
  - `jsonrpc` '2.0', required — The version of the JSON-RPC protocol.
  - `method` 'getCompressedTokenAccountsByOwner', required — The name of the method to invoke.
  - `params` object, required
    - `cursor` string — A base 58 encoded string.
    - `limit` integer
    - `mint` string — A Solana public key represented as a base58 string.
    - `owner` string, required — A Solana public key represented as a base58 string.

## Response `200`

- object
  - `error` object
    - `code` integer
    - `message` string
  - `id` 'test-account', required — An ID to identify the response.
  - `jsonrpc` '2.0', required — The version of the JSON-RPC protocol.
  - `result` object
    - `context` Context, required
      - `slot` integer, required
    - `value` TokenAccountList, required
      - `cursor` string — A base 58 encoded string.
      - `items` TokenAccount[], required
        - `account` Account, required
          - `address` string — A Solana public key represented as a base58 string.
          - `data` AccountData
            - `data` string, required — A base 64 encoded string.
            - `dataHash` string, required — A 32-byte hash represented as a base58 string.
            - `discriminator` integer, required
          - `hash` string, required — A 32-byte hash represented as a base58 string.
          - `lamports` integer, required
          - `leafIndex` integer, required
          - `owner` string, required — A Solana public key represented as a base58 string.
          - `seq` integer
          - `slotCreated` integer, required
          - `tree` string, required — A Solana public key represented as a base58 string.
        - `tokenData` TokenData, required
          - `amount` integer, required
          - `delegate` string — A Solana public key represented as a base58 string.
          - `mint` string, required — A Solana public key represented as a base58 string.
          - `owner` string, required — A Solana public key represented as a base58 string.
          - `state` 'initialized' | 'frozen', required
          - `tlv` string — A base 64 encoded string.

## Other responses

- `429` — Exceeded rate limit.
- `500` — The server encountered an unexpected condition that prevented it from fulfilling the request.

---

[API](https://skmtc.net/helius-labs/apis/photon-indexer.md) · [All operations](https://skmtc.net/helius-labs/apis/photon-indexer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/helius-labs/photon-indexer/versions/0ab5c33fdae3/schema)
