Skip to main content
POST
getMultipleAccounts
curl --request POST \
  --url 'https://mainnet.helius-rpc.com/?api-key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getMultipleAccounts",
  "params": [
    [
      "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
      "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"
    ]
  ]
}
'
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {
    "context": {
      "apiVersion": "2.0.15",
      "slot": 341197247
    },
    "value": [
      "<unknown>"
    ]
  }
}
New Feature: getMultipleAccounts now supports the changedSinceSlot parameter for incremental updates. When specified, the method returns only accounts that have been modified at or after the given slot number. For accounts that exist but haven’t changed since the specified slot, the response will contain status: "unchanged".

Request Parameters

address
array
required
Array of Solana account addresses (up to 100) to fetch in a single optimized batch request.
commitment
string
The commitment level for the request.
  • confirmed
  • finalized
  • processed
minContextSlot
number
The minimum slot that the request can be evaluated at.
dataSlice
object
Request a slice of the account’s data.
dataSlice.length
number
Number of bytes to return.
dataSlice.offset
number
Byte offset from which to start reading.
encoding
string
Encoding format for the returned account data.
  • jsonParsed
  • base58
  • base64
  • base64+zstd
changedSinceSlot
number
Only return accounts that have been modified at or after this slot number. For accounts that exist but haven’t changed since the specified slot, the response will contain status as “unchanged”.

Authorizations

api-key
string
query
required

Your Helius API key. You can get one for free in the dashboard.

Body

application/json
jsonrpc
enum<string>
default:2.0
required

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string
default:1
required

A unique identifier for the request.

Example:

"1"

method
enum<string>
default:getMultipleAccounts
required

The name of the RPC method to invoke.

Available options:
getMultipleAccounts
Example:

"getMultipleAccounts"

params
(string[] | object)[]
required

Parameters for the method.

Array of Solana account addresses (up to 100) to fetch in a single optimized batch request.

Example:
[
"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"
]

Response

Successfully retrieved the account details.

jsonrpc
enum<string>

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string

Identifier matching the request.

Example:

"1"

result
object

Accounts information with context.