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

# getCompressedAccountProof

> Mengembalikan bukti yang digunakan program kompresi untuk memverifikasi bahwa akun tersebut valid.

## Parameter Permintaan

<ParamField body="hash" type="string" required>
  Hash kriptografis 32 byte yang direpresentasikan sebagai string base58, yang secara unik mengidentifikasi akun terkompresi Solana.
</ParamField>


## OpenAPI

````yaml id/openapi/zk-compression/getCompressedAccountProof.yaml POST /
openapi: 3.0.3
info:
  title: API Verifikasi Akun Terkompresi Solana
  description: >
    Pengindeks Solana canggih untuk memverifikasi akun terkompresi menggunakan
    bukti Merkle.

    API verifikasi khusus ini memungkinkan aplikasi memvalidasi secara
    kriptografis keberadaan 

    dan integritas data NFT terkompresi serta akun token di blockchain Solana

    melalui verifikasi bukti Merkle yang efisien. API ini mendukung penggunaan
    teknologi kompresi status

    secara aman, yang mengurangi biaya penyimpanan on-chain hingga 1000x
    dibandingkan akun konvensional.
  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: getCompressedAccountProof
    post:
      description: >
        Ambil bukti Merkle kriptografis untuk akun Solana terkompresi tertentu.

        Endpoint verifikasi ini mengembalikan jalur bukti lengkap yang
        diperlukan untuk memvalidasi keberadaan

        dan integritas data NFT terkompresi atau akun token di blockchain Solana
        tanpa mengharuskan

        data akun lengkap disimpan secara on-chain. Fitur ini penting bagi
        aplikasi dompet, marketplace,

        dan protokol DeFi yang perlu memverifikasi kepemilikan serta keaslian
        aset terkompresi sambil

        memanfaatkan terobosan teknologi kompresi status Solana untuk mengurangi
        biaya secara drastis.
      operationId: getCompressedAccountProof
      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 untuk mengambil data bukti
                    akun terkompresi Solana.
                  enum:
                    - getCompressedAccountProof
                  default: getCompressedAccountProof
                params:
                  type: object
                  default:
                    hash: gEF8v1TLb2T9vTaJarFj6kQoSfWNkskMSCJpPJSxZzT
                  required:
                    - hash
                  properties:
                    hash:
                      $ref: '#/components/schemas/Hash'
                      description: Hash akun Solana terkompresi yang buktinya akan diambil
        required: true
      responses:
        '200':
          description: >-
            Berhasil mengambil bukti Merkle untuk akun Solana terkompresi yang
            diminta
          content:
            application/json:
              schema:
                type: object
                required:
                  - context
                  - value
                properties:
                  context:
                    $ref: '#/components/schemas/Context'
                  value:
                    $ref: '#/components/schemas/MerkleProofWithContext'
                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: Parameter tidak valid
                id: '1'
        '401':
          description: Tidak Diotorisasi - Kunci API tidak valid atau tidak disertakan.
          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:
    Hash:
      type: string
      description: >-
        Hash kriptografis 32 byte yang direpresentasikan sebagai string base58
        dan secara unik mengidentifikasi akun Solana terkompresi.
      example: 11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP
    Context:
      type: object
      required:
        - slot
      properties:
        slot:
          type: integer
          default: 100
          example: 100
          description: >-
            Slot blockchain Solana saat ini untuk permintaan bukti akun
            terkompresi ini
    MerkleProofWithContext:
      type: object
      required:
        - proof
        - root
        - leafIndex
        - hash
        - merkleTree
        - rootSeq
      properties:
        hash:
          $ref: '#/components/schemas/Hash'
          description: >-
            Pengidentifikasi hash unik akun Solana terkompresi yang sedang
            diverifikasi
        leafIndex:
          type: integer
          format: int32
          minimum: 0
          description: >-
            Indeks posisi akun terkompresi ini dalam struktur pohon Merkle
            Solana
        merkleTree:
          $ref: '#/components/schemas/SerializablePubkey'
          description: Alamat pohon Merkle Solana tempat akun terkompresi ini disimpan
        proof:
          type: array
          items:
            $ref: '#/components/schemas/Hash'
          description: >-
            Array hash yang membentuk jalur bukti Merkle untuk memverifikasi
            akun Solana terkompresi ini
        root:
          $ref: '#/components/schemas/Hash'
          description: Hash akar pohon Merkle Solana yang memuat akun terkompresi ini
        rootSeq:
          type: integer
          format: int64
          minimum: 0
          description: Nomor urut akar dalam pohon Merkle Solana untuk pelacakan versi
      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'
    SerializablePubkey:
      type: string
      description: >-
        Kunci publik Solana yang direpresentasikan sebagai string base58 dan
        digunakan untuk mengidentifikasi pohon Merkle serta akun.
      default: 11111117353mdUKehx9GW6JNHznGt5oSZs9fWkVkB
      example: 11111117353mdUKehx9GW6JNHznGt5oSZs9fWkVkB
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Kunci API Helius Anda. Anda bisa mendapatkannya secara gratis di
        [dasbor](https://dashboard.helius.dev/api-keys).

````