> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getMultipleAccounts | Solana

> The Solana getMultipleAccounts method returns information about multiple accounts by public key. Available on Solana via Chainstack.

# Solana `getMultipleAccounts` method

The Solana `getMultipleAccounts` method returns information about multiple accounts by public key.

This method provides detailed information about each account, including the account's current balance, owner, and executable state. It is useful for retrieving the state of multiple accounts at a specific commitment level.

## Parameters

* `publicKeys` — an array of public keys of the accounts to retrieve information for.
* `commitment` — (optional) the level of commitment desired:
  * `processed` — the node has processed the block and the block may be on a fork.
  * `confirmed` — the block is confirmed by the cluster as not being on a fork.
  * `finalized` — the block is finalized by the cluster.

## Response

* `value` — an array of account information objects, each containing:
  * `lamports` — the account's current balance.
  * `owner` — the public key of the program that owns the account.
  * `executable` — whether the account is marked as executable.
  * `rentEpoch` — the epoch at which this account will next owe rent.
  * `data` — the account's data, represented as a base64 string.

## Use case

A practical use case for `getMultipleAccounts` is to retrieve the current state of multiple Solana accounts. This can be useful for wallets or other applications that need to display or make use of this information.


## OpenAPI

````yaml openapi/solana_node_api/getMultipleAccounts.json POST /9de47db917d4f69168e3fed02217d15b
openapi: 3.0.0
info:
  title: getMultipleAccounts example
  version: 1.0.0
  description: This is an API example for Solana's getMultipleAccounts.
servers:
  - url: https://nd-326-444-187.p2pify.com
security: []
paths:
  /9de47db917d4f69168e3fed02217d15b:
    post:
      tags:
        - query
      summary: getMultipleAccounts
      operationId: getMultipleAccounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: getMultipleAccounts
                params:
                  type: array
                  default:
                    - - 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM
                      - 7mhcgF1DVsj5iv4CxZDgp51H6MBBwqamsH1KnqXhSRc5
                    - encoding: base58
      responses:
        '200':
          description: Multiple accounts details
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: array
                    items:
                      type: object

````