> ## 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.

# getMultipleCompressedAccounts

> Mengembalikan beberapa akun terkompresi dengan alamat atau hash yang diberikan.

## Parameter Permintaan

<ParamField body="addresses" type="array">
  Larik kunci publik Solana untuk akun terkompresi yang akan diambil
</ParamField>

<ParamField body="hashes" type="array">
  Larik hash data yang mengidentifikasi akun Solana terkompresi yang akan diambil
</ParamField>


## OpenAPI

````yaml id/openapi/zk-compression/getMultipleCompressedAccounts.yaml POST /
openapi: 3.0.3
info:
  title: API Batch Kompresi Status Solana
  description: >
    Pengindeks Solana tingkat lanjut untuk akun terkompresi yang menggunakan
    teknologi kompresi status guna memungkinkan penyimpanan data yang efisien
    dan hemat biaya pada blockchain Solana.

    API ini menyediakan pengambilan batch yang dioptimalkan untuk NFT dan akun
    token terkompresi, sehingga aplikasi dapat diskalakan secara efisien

    sekaligus memanfaatkan teknologi kompresi inovatif Solana yang mengurangi
    biaya penyimpanan on-chain hingga 1.000 kali lipat.
  license:
    name: Apache-2.0
  version: 0.50.0
servers:
  - url: https://mainnet.helius-rpc.com
    description: Titik akhir RPC Mainnet
  - url: https://devnet.helius-rpc.com
    description: Titik akhir RPC Devnet
security: []
paths:
  /:
    summary: getMultipleCompressedAccounts
    post:
      description: >
        Ambil beberapa akun terkompresi dari blockchain Solana secara efisien
        dalam satu permintaan.

        Titik akhir batch yang dioptimalkan ini memungkinkan pengembang
        mengambil beberapa akun dengan kompresi status berdasarkan alamat

        atau hash-nya dalam satu operasi, sehingga mengurangi panggilan RPC dan
        overhead jaringan. Cocok untuk aplikasi yang menangani

        koleksi besar NFT, token, atau struktur data Solana terkompresi lainnya
        yang memerlukan

        akses data berperforma tinggi dan hemat biaya.


        Kasus penggunaan utama:

        - Pengambilan massal data koleksi NFT terkompresi

        - Aplikasi dompet yang menampilkan beberapa aset terkompresi

        - Marketplace yang memuat metadata NFT terkompresi secara batch

        - Platform analitik yang memproses beberapa token terkompresi

        - Game yang mengambil beberapa aset dalam game secara efisien
      operationId: getMultipleCompressedAccounts
      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:
                    - getMultipleCompressedAccounts
                  default: getMultipleCompressedAccounts
                params:
                  type: object
                  description: >
                    Parameter permintaan untuk mengambil data beberapa akun
                    Solana terkompresi secara batch,

                    dengan dukungan pencarian berdasarkan alamat atau hash
                    kriptografis
                  default:
                    addresses: null
                    hashes:
                      - 1111111QLbz7JHiBTspS962RLKV8GndWFwiEaqKM
                      - 1111111ogCyDbaRMvkdsHB3qfdyFYaG1WtRUAfdh
                  properties:
                    addresses:
                      type: array
                      items:
                        $ref: '#/components/schemas/SerializablePubkey'
                      nullable: true
                      description: >-
                        Array kunci publik Solana untuk akun terkompresi yang
                        akan diambil
                    hashes:
                      type: array
                      items:
                        $ref: '#/components/schemas/Hash'
                      nullable: true
                      description: >-
                        Array hash data yang mengidentifikasi akun Solana
                        terkompresi yang akan diambil
                  additionalProperties: false
                  example:
                    addresses: null
                    hashes:
                      - 1111111QLbz7JHiBTspS962RLKV8GndWFwiEaqKM
                      - 1111111ogCyDbaRMvkdsHB3qfdyFYaG1WtRUAfdh
        required: true
      responses:
        '200':
          description: >-
            Berhasil mengambil beberapa akun Solana terkompresi dalam satu
            operasi batch
          content:
            application/json:
              schema:
                type: object
                required:
                  - context
                  - value
                properties:
                  context:
                    $ref: '#/components/schemas/Context'
                  value:
                    $ref: '#/components/schemas/AccountList'
                additionalProperties: false
        '400':
          description: >-
            Permintaan Tidak Valid - Parameter permintaan tidak valid atau
            format permintaan salah.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Parameter tidak valid
                id: '1'
        '401':
          description: Tidak Diotorisasi - Kunci API tidak valid atau tidak ada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Tidak diotorisasi
                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: Terlalu banyak permintaan
                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: Kesalahan internal
                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: Layanan tidak tersedia
                id: '1'
        '504':
          description: Waktu Tunggu Gateway Habis - Waktu permintaan habis.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Waktu tunggu gateway habis
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    SerializablePubkey:
      type: string
      description: >-
        Kunci publik Solana yang direpresentasikan sebagai string base58,
        digunakan untuk mengidentifikasi akun terkompresi, pohon Merkle, dan
        pemilik.
      default: 11111115RidqCHAoz6dzmXxGcfWLNzevYqNpaRAUo
      example: 11111115RidqCHAoz6dzmXxGcfWLNzevYqNpaRAUo
    Hash:
      type: string
      description: >-
        Hash kriptografis 32 byte yang direpresentasikan sebagai string base58,
        digunakan untuk memverifikasi integritas data akun Solana terkompresi.
      example: 11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP
    Context:
      type: object
      required:
        - slot
      properties:
        slot:
          type: integer
          default: 100
          example: 100
          description: Slot blockchain Solana saat ini pada waktu permintaan
    AccountList:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            allOf:
              - $ref: '#/components/schemas/Account'
            nullable: true
      additionalProperties: false
    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 sesuai dengan permintaan.
          example: '1'
    Account:
      type: object
      required:
        - hash
        - owner
        - lamports
        - tree
        - leafIndex
        - seq
        - slotCreated
      properties:
        address:
          $ref: '#/components/schemas/SerializablePubkey'
          description: Alamat Solana unik dari akun terkompresi
        data:
          $ref: '#/components/schemas/AccountData'
          description: Data akun terkompresi dalam format penyimpanan yang efisien
        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
    AccountData:
      type: object
      required:
        - discriminator
        - data
        - dataHash
      properties:
        data:
          $ref: '#/components/schemas/Base64String'
        dataHash:
          $ref: '#/components/schemas/Hash'
        discriminator:
          $ref: '#/components/schemas/UnsignedInteger'
      additionalProperties: false
    UnsignedInteger:
      type: integer
      default: 100
      example: 100
      description: >-
        Nilai bilangan bulat nonnegatif yang digunakan untuk berbagai parameter
        dalam struktur akun Solana terkompresi
    Base64String:
      type: string
      description: >-
        String yang dikodekan dengan base64 dan berisi data 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).

````