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

# getMultipleAccounts

> Pubkeys のリストに対するアカウント情報を返します。

<Info>
  **新機能**: `getMultipleAccounts` は、インクリメンタルアップデート用の `changedSinceSlot` パラメータをサポートするようになりました。指定すると、指定されたスロット以降に変更されたアカウントのみが返されます。指定されたスロット以来変更されていない既存のアカウントの場合、レスポンスには `status: "unchanged"` が含まれます。
</Info>

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

<ParamField body="address" type="array" required>
  単一の最適化されたバッチリクエストで取得するSolanaアカウントアドレスの配列（最大100件）。
</ParamField>

<ParamField body="commitment" type="string">
  リクエストのコミットメントレベル。

  * `confirmed`
  * `finalized`
  * `processed`
</ParamField>

<ParamField body="minContextSlot" type="number">
  リクエストが評価されることのできる最小スロット。
</ParamField>

<ParamField body="dataSlice" type="object">
  アカウントデータのスライスをリクエストします。
</ParamField>

<ParamField body="dataSlice.length" type="number">
  返すバイト数。
</ParamField>

<ParamField body="dataSlice.offset" type="number">
  読み始めるバイトオフセット。
</ParamField>

<ParamField body="encoding" type="string">
  返されるアカウントデータのエンコーディング形式。

  * `jsonParsed`
  * `base58`
  * `base64`
  * `base64+zstd`
</ParamField>

<ParamField body="changedSinceSlot" type="number">
  指定されたスロット番号以降に変更されたアカウントのみを返します。指定されたスロット以来変更されていない既存のアカウントの場合、レスポンスのステータスは「変更なし」として含まれます。
</ParamField>


## OpenAPI

````yaml ja/openapi/rpc-http/getMultipleAccounts.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    複数のブロックチェーンアカウントに1回のリクエストで効率的にアクセスするために最適化されたSolanaバッチアカウントデータ取得APIで、エンコーディングオプションが設定可能です。
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: メインネットRPCエンドポイント
  - url: https://devnet.helius-rpc.com
    description: デブネットRPCエンドポイント
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getMultipleAccounts
      description: |
        1回の効率的なバッチリクエストで複数のSolanaアカウントのデータを取得します。
        このパフォーマンス最適化APIは、ネットワーク負荷を削減し、最大100のアカウントを
        同時に取得でき、JSONパースを含むさまざまなデータエンコーディングをサポートします。
        DApps、ウォレット、複数のトークン残高、NFTメタデータ、プログラム状態、またはオンチェーンアカウントデータの組み合わせに
        最小のレイテンシーと帯域幅でアクセスする必要があるサービスに最適です。
      operationId: getMultipleAccounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  description: JSON-RPCプロトコルのバージョンです。
                  enum:
                    - '2.0'
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: リクエストの一意の識別子です。
                  example: '1'
                  default: '1'
                method:
                  type: string
                  description: 実行するRPCメソッドの名前です。
                  enum:
                    - getMultipleAccounts
                  example: getMultipleAccounts
                  default: getMultipleAccounts
                params:
                  type: array
                  description: メソッドのパラメータです。
                  default:
                    - - vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg
                      - 4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA
                  items:
                    oneOf:
                      - type: array
                        description: 1回の最適化されたバッチリクエストで取得する最大100のSolanaアカウントアドレスの配列です。
                        items:
                          type: string
                        example:
                          - vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg
                          - 4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA
                      - type: object
                        description: バッチアカウントデータ取得をカスタマイズするための高度な構成オプションです。
                        properties:
                          commitment:
                            type: string
                            description: リクエストのコミットメントレベルです。
                            enum:
                              - confirmed
                              - finalized
                              - processed
                            example: finalized
                          minContextSlot:
                            type: integer
                            description: >-
                              The minimum slot that the request can be evaluated
                              at.
                            example: 1000
                          dataSlice:
                            type: object
                            description: アカウントのデータのスライスをリクエストします。
                            properties:
                              length:
                                type: integer
                                description: 返すバイト数です。
                                example: 50
                              offset:
                                type: integer
                                description: 読み取りを開始するバイトオフセットです。
                                example: 0
                          encoding:
                            type: string
                            description: 返されるアカウントデータのエンコーディング形式です。
                            enum:
                              - jsonParsed
                              - base58
                              - base64
                              - base64+zstd
                            example: base58
                          changedSinceSlot:
                            type: integer
                            description: >-
                              このスロット番号以降に変更されたアカウントのみを返します。指定されたスロット以降に変更されていないアカウントが存在する場合、応答にはステータスが「変更なし」として含まれます。
                            example: 464175999
      responses:
        '200':
          description: アカウント詳細を正常に取得しました。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: JSON-RPCプロトコルのバージョンです。
                    enum:
                      - '2.0'
                    example: '2.0'
                  id:
                    type: string
                    description: リクエストに一致する識別子です。
                    example: '1'
                  result:
                    type: object
                    description: コンテキストを含むアカウント情報です。
                    properties:
                      context:
                        type: object
                        description: 応答のコンテキストです。
                        properties:
                          apiVersion:
                            type: string
                            description: 応答のAPIバージョンです。
                            example: 2.0.15
                          slot:
                            type: integer
                            description: データが取得されたスロットです。
                            example: 341197247
                      value:
                        type: array
                        description: アカウントの詳細の配列です。
                        items:
                          oneOf:
                            - type: 'null'
                              description: アカウントが存在しない場合はnullです。
                            - type: object
                              description: アカウントの詳細です。
                              properties:
                                lamports:
                                  type: integer
                                  description: アカウントに割り当てられたlamportの数です。
                                  example: 88849814690250
                                owner:
                                  type: string
                                  description: アカウントが割り当てられているプログラムのBase-58エンコードされた公開鍵です。
                                  example: '11111111111111111111111111111111'
                                data:
                                  type: array
                                  description: エンコードされたバイナリまたはJSON形式のアカウントデータです。
                                  items:
                                    type: string
                                  example:
                                    - ''
                                    - base58
                                executable:
                                  type: boolean
                                  description: アカウントにプログラムが含まれているかどうかを示します。
                                  example: false
                                rentEpoch:
                                  type: integer
                                  description: このアカウントが次回レンタル料を支払うエポックです。
                                  example: 18446744073709552000
                                space:
                                  type: integer
                                  description: アカウントのデータサイズです。
                                  example: 0
                            - type: object
                              description: 指定されたスロット以来変更されていないアカウントが存在する場合の、ステータスのみの応答です。
                              properties:
                                status:
                                  type: string
                                  description: 指定されたスロット以来アカウントが変更されていないことを示すステータスです。
                                  enum:
                                    - unchanged
                                  example: unchanged
        '400':
          description: 不正なリクエストパラメータまたは不正なリクエストによる不正なリクエストです。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: 無効なパラメータ
                  data:
                    additionalInfo: リクエストパラメータを確認し、有効であることを確認してください。
                id: '1'
        '401':
          description: 認証されていない - 無効または不明なAPIキーです。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: 認証されていない
                  data:
                    additionalInfo: APIキーを確認し、もう一度試してください。
                id: '1'
        '429':
          description: リクエストの超過 - レート制限を超過しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: リクエストが多すぎます
                  data:
                    additionalInfo: 許可されたリクエスト数を超過しました。しばらく待ってから再試行してください。
                id: '1'
        '500':
          description: 内部サーバーエラー - サーバー側でエラーが発生しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: 内部エラー
                  data:
                    additionalInfo: サーバー上で予期しないエラーが発生しました。後でもう一度試すか、サポートに連絡してください。
                id: '1'
        '503':
          description: サービス利用不可 - サービスは一時的に利用できません。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: サービスが利用できません
                  data:
                    additionalInfo: サービスは現在利用できません。後でもう一度試すか、サポートに連絡してください。
                id: '1'
        '504':
          description: ゲートウェイタイムアウト - リクエストがタイムアウトしました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: ゲートウェイタイムアウト
                  data:
                    additionalInfo: リクエストがタイムアウトしました。後でもう一度試すか、サポートに連絡してください。
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    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'
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Helius
        APIキーです。[ダッシュボード](https://dashboard.helius.dev/api-keys)で無料で取得できます。

````