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

> 指定されたアドレスやハッシュで複数の圧縮アカウントを返します。

## リクエストパラメータ

<ParamField body="addresses" type="array">
  取得する圧縮アカウントのSolana公開キーの配列
</ParamField>

<ParamField body="hashes" type="array">
  取得する圧縮されたSolanaアカウントを識別するデータハッシュの配列
</ParamField>


## OpenAPI

````yaml ja/openapi/zk-compression/getMultipleCompressedAccounts.yaml POST /
openapi: 3.0.3
info:
  title: Solana State Compression Batch API
  description: >
    圧縮アカウント用の高度なSolanaインデクサーで、状態圧縮技術を使用してSolanaブロックチェーン上で効率的かつ費用対効果の高いデータストレージを可能にします。

    このAPIは圧縮されたNFTとトークンアカウントの最適化されたバッチ取得を提供し、

    Solanaの革新的な圧縮技術からの恩恵を受けてオンチェーンストレージコストを最大で1000倍削減しながらアプリケーションを効率的にスケールアップさせることができます。
  license:
    name: Apache-2.0
  version: 0.50.0
servers:
  - url: https://mainnet.helius-rpc.com
    description: メインネットRPCエンドポイント
  - url: https://devnet.helius-rpc.com
    description: デブネットRPCエンドポイント
security: []
paths:
  /:
    summary: getMultipleCompressedAccounts
    post:
      description: >
        Solanaブロックチェーンから複数の圧縮アカウントを効率的に取得する単一リクエストです。

        この最適化されたバッチエンドポイントにより、開発者は複数の状態圧縮アカウントをアドレスまたはハッシュによって1回の操作で取得し、RPC呼び出しとネットワークの負担を軽減します。大量の圧縮されたNFT、トークン、または他の圧縮Solanaデータ構造を扱うアプリケーションに理想的で、

        高性能かつ費用対効果の高いデータアクセスを必要とするケースに適しています。


        主なユースケース:

        - 圧縮されたNFTコレクションデータの大量取得

        - 複数の圧縮資産を表示するウォレットアプリケーション

        - 圧縮されたNFTメタデータのバッチをロードするマーケットプレイス

        - 複数の圧縮トークンを処理する分析プラットフォーム

        - ゲーム内の複数のアセットを効率的に取得
      operationId: getMultipleCompressedAccounts
      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: 呼び出すメソッドの名前。
                  enum:
                    - getMultipleCompressedAccounts
                  default: getMultipleCompressedAccounts
                params:
                  type: object
                  description: |
                    複数の圧縮されたSolanaアカウントデータをバッチ取得するためのリクエストパラメータ。
                    アドレスや暗号学的ハッシュによるルックアップをサポートします。
                  default:
                    addresses: null
                    hashes:
                      - 1111111QLbz7JHiBTspS962RLKV8GndWFwiEaqKM
                      - 1111111ogCyDbaRMvkdsHB3qfdyFYaG1WtRUAfdh
                  properties:
                    addresses:
                      type: array
                      items:
                        $ref: '#/components/schemas/SerializablePubkey'
                      nullable: true
                      description: >-
                        Array of Solana public keys for the compressed accounts
                        to retrieve
                    hashes:
                      type: array
                      items:
                        $ref: '#/components/schemas/Hash'
                      nullable: true
                      description: >-
                        Array of data hashes identifying the compressed Solana
                        accounts to retrieve
                  additionalProperties: false
                  example:
                    addresses: null
                    hashes:
                      - 1111111QLbz7JHiBTspS962RLKV8GndWFwiEaqKM
                      - 1111111ogCyDbaRMvkdsHB3qfdyFYaG1WtRUAfdh
        required: true
      responses:
        '200':
          description: 1回のバッチ操作で複数の圧縮されたSolanaアカウントを正常に取得しました
          content:
            application/json:
              schema:
                type: object
                required:
                  - context
                  - value
                properties:
                  context:
                    $ref: '#/components/schemas/Context'
                  value:
                    $ref: '#/components/schemas/AccountList'
                additionalProperties: false
        '400':
          description: 不正なリクエスト - 無効なリクエストパラメータまたは不正な形式のリクエスト。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: 無効なパラメータ
                id: '1'
        '401':
          description: 認証されていない - 無効または欠落しているAPIキー。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: 認証されていない
                id: '1'
        '429':
          description: リクエスト過多 - レートリミットを超過しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: リクエストが多すぎます
                id: '1'
        '500':
          description: 内部サーバーエラー - サーバーでエラーが発生しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: 内部エラー
                id: '1'
        '503':
          description: サービス利用不可 - サービスが一時的に利用できません。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: サービス利用不可
                id: '1'
        '504':
          description: ゲートウェイタイムアウト - リクエストがタイムアウトしました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: ゲートウェイタイムアウト
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    SerializablePubkey:
      type: string
      description: 圧縮アカウント、マークリーツリー、オーナーを識別するために使用される、base58で表現されたSolana公開鍵。
      default: 11111115RidqCHAoz6dzmXxGcfWLNzevYqNpaRAUo
      example: 11111115RidqCHAoz6dzmXxGcfWLNzevYqNpaRAUo
    Hash:
      type: string
      description: Solanaの圧縮アカウントデータの整合性を確認するために使用される、base58で表現された32バイトの暗号学的ハッシュ。
      example: 11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP
    Context:
      type: object
      required:
        - slot
      properties:
        slot:
          type: integer
          default: 100
          example: 100
          description: リクエスト時点のSolanaブロックチェーンの現在のスロット
    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: 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'
    Account:
      type: object
      required:
        - hash
        - owner
        - lamports
        - tree
        - leafIndex
        - seq
        - slotCreated
      properties:
        address:
          $ref: '#/components/schemas/SerializablePubkey'
          description: 圧縮アカウントのSolanaのユニークアドレス
        data:
          $ref: '#/components/schemas/AccountData'
          description: 効率的なストレージフォーマットの圧縮アカウントデータ
        hash:
          $ref: '#/components/schemas/Hash'
          description: 検証用の圧縮アカウントデータの暗号学的ハッシュ
        lamports:
          $ref: '#/components/schemas/UnsignedInteger'
          description: 圧縮アカウントに関連付けられたラムポート（残高）
        leafIndex:
          $ref: '#/components/schemas/UnsignedInteger'
          description: 圧縮アカウントが保存されているマークリツリー内のインデックス位置
        owner:
          $ref: '#/components/schemas/SerializablePubkey'
          description: この圧縮アカウントを所有するSolanaプログラム
        seq:
          $ref: '#/components/schemas/UnsignedInteger'
          description: 圧縮アカウントの更新を追跡するためのシーケンス番号
        slotCreated:
          $ref: '#/components/schemas/UnsignedInteger'
          description: 圧縮アカウントが作成されたSolanaブロックチェーンのスロット
        tree:
          $ref: '#/components/schemas/SerializablePubkey'
          description: この圧縮アカウントを含むマークリツリーのアドレス
      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: Solana圧縮アカウント構造のさまざまなパラメータに使用される非負整数値
    Base64String:
      type: string
      description: 圧縮されたSolanaアカウントデータを含むbase64エンコードされた文字列。
      default: SGVsbG8sIFdvcmxkIQ==
      example: SGVsbG8sIFdvcmxkIQ==
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Helius
        APIキーを入力してください。[ダッシュボード](https://dashboard.helius.dev/api-keys)で無料で取得できます。

````