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

> 압축 프로그램이 계정의 유효성을 확인하는 데 사용하는 증명을 반환합니다.

## 요청 매개변수

<ParamField body="hash" type="string" required>
  Solana 압축 계정을 고유하게 식별하는 base58 문자열로 나타낸 32바이트 암호화 해시입니다.
</ParamField>


## OpenAPI

````yaml ko/openapi/zk-compression/getCompressedAccountProof.yaml POST /
openapi: 3.0.3
info:
  title: Solana 압축 계정 검증 API
  description: |
    압축 계정을 머클 증명을 사용하여 검증하기 위한 고급 Solana 인덱서입니다.
    이 특수 검증 API는 애플리케이션이 압축 NFT와 토큰 계정의 존재 및 데이터 무결성을
    Solana 블록체인에서 암호학적으로 검증할 수 있도록 하며, 효율적인 머클 증명 검증을 통해 체인상의
    스토리지 비용을 전통적인 계정보다 최대 1000배 절감하는 상태 압축 기술의 안전한 사용을 지원합니다.
  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: 메인넷 RPC 엔드포인트
  - url: https://devnet.helius-rpc.com
    description: Devnet RPC 엔드포인트
security: []
paths:
  /:
    summary: getCompressedAccountProof
    post:
      description: |
        특정 압축 Solana 계정에 대한 암호화된 머클 증명을 검색합니다.
        이 검증 엔드포인트는 Solana 블록체인에서 압축 NFT나 토큰 계정의 존재 및 데이터 무결성을 검증하는 데
        필요한 전체 증명 경로를 반환합니다. 전체 계정 데이터를 체인상에 저장할 필요가 없으며, 소유권과
        압축 자산의 진위성을 검증해야 하는 지갑 애플리케이션, 마켓플레이스, DeFi 프로토콜에 필수적입니다.
        Solana의 혁신적인 상태 압축 기술을 통해 극적인 비용 절감을 얻을 수 있습니다.
      operationId: getCompressedAccountProof
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  description: JSON-RPC 프로토콜의 버전입니다.
                  enum:
                    - '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: 요청을 식별하는 ID입니다.
                  default: '1'
                method:
                  type: string
                  description: Solana 압축 계정 증명 데이터를 검색하기 위해 호출할 메서드의 이름입니다.
                  enum:
                    - getCompressedAccountProof
                  default: getCompressedAccountProof
                params:
                  type: object
                  default:
                    hash: gEF8v1TLb2T9vTaJarFj6kQoSfWNkskMSCJpPJSxZzT
                  required:
                    - hash
                  properties:
                    hash:
                      $ref: '#/components/schemas/Hash'
                      description: 증명을 검색할 Solana 압축 계정의 해시입니다.
        required: true
      responses:
        '200':
          description: 요청된 Solana 압축 계정에 대한 머클 증명을 성공적으로 검색했습니다.
          content:
            application/json:
              schema:
                type: object
                required:
                  - context
                  - value
                properties:
                  context:
                    $ref: '#/components/schemas/Context'
                  value:
                    $ref: '#/components/schemas/MerkleProofWithContext'
                additionalProperties: false
        '400':
          description: 잘못된 요청 - 올바르지 않거나 형식이 잘못된 요청 매개변수.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Invalid params
                id: '1'
        '401':
          description: Unauthorized - 잘못되었거나 누락된 API 키.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Unauthorized
                id: '1'
        '429':
          description: Too Many Requests - 요청 한도를 초과했습니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Too many requests
                id: '1'
        '500':
          description: Internal Server Error - 서버에서 오류가 발생했습니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Internal error
                id: '1'
        '503':
          description: Service Unavailable - 서비스가 일시적으로 사용할 수 없습니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Service unavailable
                id: '1'
        '504':
          description: Gateway Timeout - 요청 시간이 초과되었습니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Gateway timeout
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    Hash:
      type: string
      description: Solana 압축 계정을 고유하게 식별하는 base58 문자열로 표현된 32바이트 암호화 해시입니다.
      example: 11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP
    Context:
      type: object
      required:
        - slot
      properties:
        slot:
          type: integer
          default: 100
          example: 100
          description: 이 압축 계정 증명 요청에 대한 현재 Solana 블록체인 슬롯입니다.
    MerkleProofWithContext:
      type: object
      required:
        - proof
        - root
        - leafIndex
        - hash
        - merkleTree
        - rootSeq
      properties:
        hash:
          $ref: '#/components/schemas/Hash'
          description: 검증 중인 Solana 압축 계정의 고유 해시 식별자입니다.
        leafIndex:
          type: integer
          format: int32
          minimum: 0
          description: Solana 머클 트리 구조에서 이 압축 계정의 위치 인덱스입니다.
        merkleTree:
          $ref: '#/components/schemas/SerializablePubkey'
          description: 이 압축 계정이 저장된 Solana 머클 트리의 주소입니다.
        proof:
          type: array
          items:
            $ref: '#/components/schemas/Hash'
          description: 이 Solana 압축 계정을 검증하기 위한 머클 증명 경로를 형성하는 해시 배열입니다.
        root:
          $ref: '#/components/schemas/Hash'
          description: 이 압축 계정을 포함하는 Solana 머클 트리의 루트 해시입니다.
        rootSeq:
          type: integer
          format: int64
          minimum: 0
          description: 버전 추적을 위한 Solana 머클 트리의 루트 시퀀스 번호입니다.
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: JSON-RPC 프로토콜 버전입니다.
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: 오류 코드입니다.
              example: -32602
            message:
              type: string
              description: 오류 메시지입니다.
            data:
              type: object
              description: 오류에 대한 추가 데이터입니다.
        id:
          type: string
          description: 요청을 일치시키는 식별자입니다.
          example: '1'
    SerializablePubkey:
      type: string
      description: 머클 트리 및 계정을 식별하는 데 사용되는 base58 문자열로 표현된 Solana 공개 키입니다.
      default: 11111117353mdUKehx9GW6JNHznGt5oSZs9fWkVkB
      example: 11111117353mdUKehx9GW6JNHznGt5oSZs9fWkVkB
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        당신의 Helius API 키입니다. [대시보드](https://dashboard.helius.dev/api-keys)에서 무료로
        받을 수 있습니다.

````