> ## Documentation Index
> Fetch the complete documentation index at: https://www.helius.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# getCompressedTokenAccountsByOwner

> Mengembalikan akun token terkompresi yang dimiliki oleh akun tertentu.

## Parameter Permintaan

<ParamField body="cursor" type="string" default="3J98t1WpEZ73CNm">
  Kursor paginasi untuk mengambil kumpulan akun token terkompresi berikutnya dalam dompet Solana dengan kepemilikan besar
</ParamField>

<ParamField body="limit" type="number">
  Jumlah maksimum akun token terkompresi yang akan dikembalikan per permintaan (untuk paginasi)
</ParamField>

<ParamField body="mint" type="string" default="11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9">
  Memfilter akun token terkompresi berdasarkan alamat mint token Solana tertentu
</ParamField>

<ParamField body="owner" type="string" required default="11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9">
  Kunci publik Solana yang direpresentasikan sebagai string base58 untuk alamat akun dan dompet.
</ParamField>


## OpenAPI

````yaml id/openapi/zk-compression/getCompressedTokenAccountsByOwner.yaml POST /
openapi: 3.0.3
info:
  title: API Portofolio Token Terkompresi Solana
  description: >
    Pengindeks Solana canggih untuk akun token terkompresi yang menggunakan
    teknologi kompresi status agar penyimpanan dan pengambilan token efisien
    serta hemat biaya.

    API ini menyediakan akses yang dioptimalkan ke token dan NFT terkompresi
    Solana, sehingga memungkinkan penghematan biaya hingga 1000x sekaligus
    mempertahankan 

    keamanan penuh dan kompatibilitas dengan ekosistem token Solana. Ideal untuk
    aplikasi dompet, marketplace, dan dApp berbasis token

    yang memerlukan pengelolaan portofolio efisien untuk aset terkompresi.
  license:
    name: Apache-2.0
  version: 0.50.0
servers:
  - url: https://mainnet.helius-rpc.com
    description: Endpoint RPC Mainnet
  - url: https://devnet.helius-rpc.com
    description: Endpoint RPC Devnet
security: []
paths:
  /:
    summary: getCompressedTokenAccountsByOwner
    post:
      description: >
        Ambil semua akun token terkompresi yang dimiliki oleh alamat dompet
        Solana tertentu. 

        Endpoint portofolio ini menyediakan data lengkap tentang kepemilikan
        token SPL dan NFT terkompresi dengan 

        penghematan biaya yang signifikan menggunakan teknologi kompresi status
        Solana. Filter hasil berdasarkan alamat mint, 

        telusuri koleksi besar secara efisien dengan paginasi, dan akses data
        akun terperinci dengan verifikasi kepemilikan lengkap.


        Manfaat utama:

        - Mengurangi biaya penyimpanan on-chain untuk akun token (penghematan
        hingga 1000x)

        - Mendukung integrasi dompet berskala besar dengan paginasi yang efisien

        - Kompatibel dengan standar token SPL dan NFT terkompresi Solana

        - Pemfilteran khusus mint untuk kueri token yang ditargetkan

        - Data akun token lengkap, termasuk saldo, delegasi, dan status
      operationId: getCompressedTokenAccountsByOwner
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  description: Versi protokol JSON-RPC.
                  enum:
                    - '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: ID untuk mengidentifikasi permintaan.
                  default: '1'
                method:
                  type: string
                  description: Nama metode yang akan dipanggil.
                  enum:
                    - getCompressedTokenAccountsByOwner
                  default: getCompressedTokenAccountsByOwner
                params:
                  type: object
                  required:
                    - owner
                  properties:
                    cursor:
                      allOf:
                        - $ref: '#/components/schemas/Base58String'
                      nullable: true
                      description: >-
                        Kursor paginasi untuk mengambil kumpulan akun token
                        terkompresi berikutnya di dompet Solana dengan
                        kepemilikan dalam jumlah besar
                    limit:
                      allOf:
                        - $ref: '#/components/schemas/Limit'
                      nullable: true
                      description: >-
                        Jumlah maksimum akun token terkompresi yang dikembalikan
                        per permintaan (untuk paginasi)
                    mint:
                      allOf:
                        - $ref: '#/components/schemas/SerializablePubkey'
                      nullable: true
                      description: >-
                        Filter akun token terkompresi berdasarkan alamat mint
                        token Solana tertentu
                    owner:
                      $ref: '#/components/schemas/SerializablePubkey'
                      description: >-
                        Alamat dompet Solana yang memiliki akun token
                        terkompresi yang akan diambil
                  additionalProperties: false
        required: true
      responses:
        '200':
          description: >-
            Berhasil mengambil akun token terkompresi dari blockchain Solana
            untuk pemilik dompet yang ditentukan
          content:
            application/json:
              schema:
                type: object
                required:
                  - context
                  - value
                properties:
                  context:
                    $ref: '#/components/schemas/Context'
                  value:
                    $ref: '#/components/schemas/TokenAccountList'
                additionalProperties: false
        '400':
          description: >-
            Permintaan Buruk - Parameter permintaan tidak valid atau format
            permintaan salah.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Invalid params
                id: '1'
        '401':
          description: Tidak Diotorisasi - Kunci API tidak valid atau tidak tersedia.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Unauthorized
                id: '1'
        '429':
          description: Terlalu Banyak Permintaan - Batas laju terlampaui.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Too many requests
                id: '1'
        '500':
          description: Kesalahan Server Internal - Terjadi kesalahan pada server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Internal error
                id: '1'
        '503':
          description: Layanan Tidak Tersedia - Layanan tidak tersedia untuk sementara.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Service unavailable
                id: '1'
        '504':
          description: Waktu Tunggu Gateway Habis - Waktu tunggu permintaan habis.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Gateway timeout
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    Base58String:
      type: string
      description: >-
        String berkode base58 yang digunakan untuk alamat dan pengidentifikasi
        Solana.
      default: 3J98t1WpEZ73CNm
      example: 3J98t1WpEZ73CNm
    Limit:
      type: integer
      format: int64
      minimum: 0
      description: >-
        Jumlah maksimum akun token terkompresi yang dikembalikan dalam satu
        permintaan
    SerializablePubkey:
      type: string
      description: >-
        Kunci publik Solana yang direpresentasikan sebagai string base58 untuk
        alamat akun dan dompet.
      default: 11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9
      example: 11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9
    Context:
      type: object
      required:
        - slot
      properties:
        slot:
          type: integer
          default: 100
          example: 100
          description: Slot blockchain Solana saat ini untuk respons ini
    TokenAccountList:
      type: object
      required:
        - items
      properties:
        cursor:
          $ref: '#/components/schemas/Base58String'
          description: >-
            Kursor paginasi untuk mengambil kumpulan akun token terkompresi
            berikutnya dalam permintaan selanjutnya
        items:
          type: array
          items:
            $ref: '#/components/schemas/TokenAcccount'
          description: >-
            Array akun token terkompresi yang dimiliki oleh alamat dompet Solana
            yang ditentukan
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: Versi protokol JSON-RPC.
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: Kode kesalahan.
              example: -32602
            message:
              type: string
              description: Pesan kesalahan.
            data:
              type: object
              description: Data tambahan tentang kesalahan.
        id:
          type: string
          description: Pengidentifikasi yang cocok dengan permintaan.
          example: '1'
    TokenAcccount:
      type: object
      required:
        - account
        - tokenData
      properties:
        account:
          $ref: '#/components/schemas/Account'
          description: >-
            Informasi akun terkompresi untuk akun token di Solana, termasuk
            posisi pohon dan data verifikasi
        tokenData:
          $ref: '#/components/schemas/TokenData'
          description: >-
            Data khusus terkait token, termasuk saldo, mint, pemilik, dan status
            delegasi
      additionalProperties: false
    Account:
      type: object
      required:
        - hash
        - owner
        - lamports
        - tree
        - leafIndex
        - seq
        - slotCreated
      properties:
        address:
          $ref: '#/components/schemas/SerializablePubkey'
          description: Alamat unik akun terkompresi di Solana
        data:
          $ref: '#/components/schemas/AccountData'
          description: Data akun yang disimpan dalam format terkompresi di Solana
        hash:
          $ref: '#/components/schemas/Hash'
          description: Hash kriptografis data akun terkompresi untuk verifikasi
        lamports:
          $ref: '#/components/schemas/UnsignedInteger'
          description: Saldo dalam lamport yang terkait dengan akun terkompresi
        leafIndex:
          $ref: '#/components/schemas/UnsignedInteger'
          description: Posisi indeks dalam pohon Merkle tempat akun terkompresi disimpan
        owner:
          $ref: '#/components/schemas/SerializablePubkey'
          description: Program Solana yang memiliki akun terkompresi ini
        seq:
          $ref: '#/components/schemas/UnsignedInteger'
          description: Nomor urut untuk melacak pembaruan pada akun terkompresi
        slotCreated:
          $ref: '#/components/schemas/UnsignedInteger'
          description: Slot blockchain Solana saat akun terkompresi dibuat
        tree:
          $ref: '#/components/schemas/SerializablePubkey'
          description: Alamat pohon Merkle yang berisi akun terkompresi ini
      additionalProperties: false
    TokenData:
      type: object
      required:
        - mint
        - owner
        - amount
        - state
      properties:
        amount:
          $ref: '#/components/schemas/UnsignedInteger'
          description: Jumlah saldo token yang disimpan dalam akun token terkompresi ini
        delegate:
          $ref: '#/components/schemas/SerializablePubkey'
          description: >-
            Alamat delegasi opsional yang diberi wewenang untuk melakukan
            operasi pada akun token terkompresi ini
        mint:
          $ref: '#/components/schemas/SerializablePubkey'
          description: >-
            Alamat mint token SPL Solana yang terkait dengan akun token
            terkompresi ini
        owner:
          $ref: '#/components/schemas/SerializablePubkey'
          description: Alamat dompet Solana yang memiliki akun token terkompresi ini
        state:
          $ref: '#/components/schemas/AccountState'
          description: >-
            Status akun token terkompresi saat ini (diinisialisasi atau
            dibekukan)
        tlv:
          $ref: '#/components/schemas/Base64String'
          description: >-
            Data opsional berkode type-length-value untuk informasi akun token
            tambahan
    AccountData:
      type: object
      required:
        - discriminator
        - data
        - dataHash
      properties:
        data:
          $ref: '#/components/schemas/Base64String'
          description: Data akun Solana terkompresi yang dikodekan dengan Base64
        dataHash:
          $ref: '#/components/schemas/Hash'
          description: Hash data akun terkompresi untuk verifikasi integritas
        discriminator:
          $ref: '#/components/schemas/UnsignedInteger'
          description: Pengidentifikasi jenis akun dalam program Solana
      additionalProperties: false
    Hash:
      type: string
      description: >-
        Hash kriptografis 32 byte yang direpresentasikan sebagai string base58
        untuk verifikasi data Solana.
      example: 11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP
    UnsignedInteger:
      type: integer
      default: 100
      example: 100
      description: >-
        Nilai bilangan bulat nonnegatif yang digunakan untuk jumlah token, nomor
        urut, dan nilai numerik lainnya
    AccountState:
      type: string
      enum:
        - initialized
        - frozen
      description: Status akun token terkompresi saat ini (diinisialisasi atau dibekukan)
    Base64String:
      type: string
      description: >-
        String berkode base64 untuk menyimpan data biner dalam akun Solana
        terkompresi.
      default: SGVsbG8sIFdvcmxkIQ==
      example: SGVsbG8sIFdvcmxkIQ==
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Kunci API Helius Anda. Anda dapat memperolehnya secara gratis di
        [dasbor](https://dashboard.helius.dev/api-keys).

````