Skip to main content
Returns account data for up to 100 public keys in a single request. The response preserves the order of the input array — entries are null for accounts that do not exist.

Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getMultipleAccounts",
  "params": [
    [
      "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
      "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"
    ],
    { "encoding": "base64" }
  ]
}

Parameters

pubkeys
string[]
required
Array of base-58 encoded public keys to query. Maximum 100 keys per request.
commitment
string
Commitment level for the query. One of processed, confirmed, or finalized.
encoding
string
Encoding for account data. One of base58, base64, base64+zstd, or jsonParsed. Defaults to base64.

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": { "slot": 341197247 },
    "value": [
      {
        "data": ["", "base64"],
        "executable": false,
        "lamports": 88849814690250,
        "owner": "11111111111111111111111111111111",
        "rentEpoch": 18446744073709551615,
        "space": 0
      },
      {
        "data": ["", "base64"],
        "executable": false,
        "lamports": 998763433,
        "owner": "2WRuhE4GJFoE23DYzp2ij6ZnuQ8p9mJeU6gDgfsjR4or",
        "rentEpoch": 18446744073709551615,
        "space": 0
      }
    ]
  }
}
value
array
Array of account objects in the same order as the requested pubkeys. An entry is null if the corresponding account does not exist.
value[].lamports
number
Account balance in lamports.
value[].owner
string
Base-58 encoded public key of the program that owns the account.
value[].executable
boolean
Whether the account contains a program.
value[].data
array | object
Account data, encoded per the requested encoding.
value[].space
number
Data size of the account in bytes.

Example

curl "https://rpc.solami.fast/sol?api_key=YOUR_API_KEY" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getMultipleAccounts",
    "params": [
      [
        "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
        "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"
      ],
      { "encoding": "base64" }
    ]
  }'