> ## 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 ja/openapi/zk-compression/getCompressedAccountProof.yaml POST /
openapi: 3.0.3
info:
  title: Solana圧縮アカウント検証API
  description: >-
    Merkle証明を使用して圧縮アカウントを検証するための高度なSolanaインデクサー。この専門化された検証APIは、アプリケーションがSolanaブロックチェーン上で圧縮されたNFTおよびトークンアカウントの存在とデータ完全性を効率的なMerkle証明検証を通じて暗号的に検証できるようにし、従来のアカウントと比較してオンチェーンストレージコストを最大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: デブネットRPCエンドポイント
security: []
paths:
  /:
    summary: getCompressedAccountProof
    post:
      description: >-
        特定のSolana圧縮アカウントの暗号的Merkle証明を取得します。この検証エンドポイントは、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圧縮アカウントのMerkle証明を正常に取得しました
          content:
            application/json:
              schema:
                type: object
                required:
                  - context
                  - value
                properties:
                  context:
                    $ref: '#/components/schemas/Context'
                  value:
                    $ref: '#/components/schemas/MerkleProofWithContext'
                additionalProperties: false
        '400':
          description: Bad Request - リクエストパラメータが無効またはリクエストが不正です。
          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 Merkleツリー構造内のこの圧縮アカウントの位置インデックス
        merkleTree:
          $ref: '#/components/schemas/SerializablePubkey'
          description: この圧縮アカウントが格納されているSolana Merkleツリーのアドレス
        proof:
          type: array
          items:
            $ref: '#/components/schemas/Hash'
          description: このSolana圧縮アカウントを検証するためのMerkle証明経路を形成するハッシュの配列
        root:
          $ref: '#/components/schemas/Hash'
          description: この圧縮アカウントを含むSolana Merkleツリーのルートハッシュ
        rootSeq:
          type: integer
          format: int64
          minimum: 0
          description: バージョントラッキングのためのSolana Merkleツリー内のルートのシーケンス番号
      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: Merkleツリーおよびアカウントを識別するために使用される、base58文字列で表現されたSolana公開鍵。
      default: 11111117353mdUKehx9GW6JNHznGt5oSZs9fWkVkB
      example: 11111117353mdUKehx9GW6JNHznGt5oSZs9fWkVkB
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: Helius APIキー。無料で[ダッシュボード](https://dashboard.helius.dev/api-keys)で取得可能です。

````