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

# getCompressedAccount

> Mengembalikan akun terkompresi dengan alamat atau hash yang diberikan.

## Parameter Permintaan

<ParamField body="address" type="string" default="11111112D1oxKts8YPdTJRG5FzxTNpMtWmq8hkVx3">
  Kunci publik Solana dari akun terkompresi yang datanya akan diambil
</ParamField>

<ParamField body="hash" type="string">
  Pengidentifikasi hash data dari akun Solana terkompresi jika alamat tidak tersedia
</ParamField>


## OpenAPI

````yaml id/openapi/zk-compression/getCompressedAccount.yaml POST /
openapi: 3.0.3
info:
  title: API Kompresi Status Solana
  description: >
    Pengindeks Solana tingkat lanjut untuk akun status terkompresi yang
    menggunakan bukti zero-knowledge demi penyimpanan dan pengambilan data yang
    efisien.

    API ini memungkinkan operasi NFT dan token yang hemat biaya melalui
    teknologi kompresi status Solana,

    sehingga mengurangi biaya penyimpanan hingga 1000x dibandingkan dengan akun
    tradisional.
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  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: getCompressedAccount
    post:
      description: >
        Ambil data terperinci untuk akun Solana terkompresi menggunakan
        teknologi kompresi status.

        Endpoint ini menyediakan akses ke penyimpanan data on-chain yang efisien
        dengan penghematan biaya hingga 1000x 

        dibandingkan dengan akun Solana biasa. Kueri NFT dan akun token
        terkompresi berdasarkan alamat atau hash 

        untuk mendapatkan informasi akun lengkap, detail kepemilikan, dan data
        on-chain.


        Manfaat utama:

        - Biaya yang jauh lebih rendah untuk proyek NFT Solana dan penerbit
        token

        - Biaya penyimpanan yang lebih rendah untuk aplikasi bervolume tinggi

        - Kompatibilitas penuh dengan model keamanan dan konsensus Solana

        - Solusi yang dapat diskalakan untuk koleksi NFT besar dan kumpulan
        token

        - Throughput yang lebih tinggi untuk operasi aset terkompresi
      operationId: getCompressedAccount
      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:
                    - getCompressedAccount
                  default: getCompressedAccount
                params:
                  type: object
                  description: >
                    Parameter permintaan untuk mengambil data akun terkompresi
                    di Solana, termasuk 

                    pengidentifikasi alamat atau hash data untuk NFT dan token
                    terkompresi
                  default:
                    address: null
                    hash: gEF8v1TLb2T9vTaJarFj6kQoSfWNkskMSCJpPJSxZzT
                  properties:
                    address:
                      type: string
                      allOf:
                        - $ref: '#/components/schemas/SerializablePubkey'
                      nullable: true
                      description: >-
                        Kunci publik Solana dari akun terkompresi yang datanya
                        akan diambil
                    hash:
                      type: string
                      allOf:
                        - $ref: '#/components/schemas/Hash'
                      nullable: true
                      description: >-
                        Pengidentifikasi hash data dari akun Solana terkompresi
                        jika alamat tidak tersedia
                  additionalProperties: false
                  example:
                    address: null
                    hash: gEF8v1TLb2T9vTaJarFj6kQoSfWNkskMSCJpPJSxZzT
        required: true
      responses:
        '200':
          description: Berhasil mengambil data akun terkompresi dari blockchain Solana
          content:
            application/json:
              schema:
                type: object
                required:
                  - context
                properties:
                  context:
                    $ref: '#/components/schemas/Context'
                  value:
                    $ref: '#/components/schemas/Account'
                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 tunggu 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 yang dienkode
        dengan base58, digunakan untuk mengidentifikasi akun, program, dan
        pengguna.
      default: 11111112D1oxKts8YPdTJRG5FzxTNpMtWmq8hkVx3
      example: 11111112D1oxKts8YPdTJRG5FzxTNpMtWmq8hkVx3
    Hash:
      type: string
      description: >-
        Hash kriptografis 32 byte yang direpresentasikan sebagai string base58,
        digunakan untuk verifikasi akun Solana terkompresi.
      example: 11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP
    Context:
      type: object
      required:
        - slot
      properties:
        slot:
          type: integer
          default: 100
          example: 100
          description: Konteks slot blockchain Solana saat ini untuk permintaan ini
    Account:
      type: object
      required:
        - hash
        - owner
        - lamports
        - tree
        - leafIndex
        - seq
        - slotCreated
      properties:
        address:
          $ref: '#/components/schemas/SerializablePubkey'
          description: Alamat pengidentifikasi unik untuk akun Solana terkompresi
        data:
          $ref: '#/components/schemas/AccountData'
          description: Data on-chain yang disimpan dalam akun Solana terkompresi
        hash:
          $ref: '#/components/schemas/Hash'
          description: Hash kriptografis dari data akun terkompresi untuk verifikasi
        lamports:
          $ref: '#/components/schemas/UnsignedInteger'
          description: >-
            Saldo SOL yang disimpan oleh akun terkompresi ini dalam lamport (1
            SOL = 1.000.000.000 lamport)
        leafIndex:
          $ref: '#/components/schemas/UnsignedInteger'
          description: >-
            Indeks posisi dalam pohon Merkle tempat akun terkompresi ini
            disimpan
        owner:
          $ref: '#/components/schemas/SerializablePubkey'
          description: >-
            Program Solana yang memiliki akun terkompresi ini (biasanya program
            kompresi)
        seq:
          $ref: '#/components/schemas/UnsignedInteger'
          description: Nomor urut untuk melacak pembaruan pada akun terkompresi ini
        slotCreated:
          $ref: '#/components/schemas/UnsignedInteger'
          description: Slot blockchain Solana saat akun terkompresi ini dibuat
        tree:
          $ref: '#/components/schemas/SerializablePubkey'
          description: Alamat pohon Merkle tempat akun terkompresi ini disimpan
      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 tersebut.
        id:
          type: string
          description: Pengidentifikasi yang sesuai dengan permintaan.
          example: '1'
    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
        numerik dalam akun Solana terkompresi
    Base64String:
      type: string
      description: >-
        String yang dienkode dengan base64 yang mewakili data akun terkompresi
        di Solana.
      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).

````