getMultipleAccounts

Read several Solana accounts in one rpc edge JSON-RPC call, weighted by account count.

getMultipleAccounts reads up to 100 accounts in a single request. Prefer it over looping getAccountInfo - it is one round trip and one request against your rate limit, though it is still weighted by account count in the account-read unit budget.

Request

curl -s https://rpc.rpcedge.com \
  -H 'content-type: application/json' \
  -H 'x-api-key: YOUR_UUID_KEY' \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getMultipleAccounts",
    "params": [
      ["vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg", "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"],
      { "encoding": "base64", "commitment": "processed" }
    ]
  }'

Parameters

PositionNameTypeNotes
0pubkeysstring[]Up to 100 base-58 addresses.
1configobjectOptional. commitment, encoding (base64 recommended), dataSlice, minContextSlot - same as getAccountInfo.

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": { "slot": 429641447 },
    "value": [
      { "lamports": 2039280, "owner": "Tokenkeg...", "data": ["<base64>", "base64"], "executable": false, "rentEpoch": 361, "space": 165 },
      null
    ]
  }
}

value is an array aligned to your input order. Each element is an account object or null if that address does not exist. Beyond 100 accounts, split into multiple requests.

getMultipleAccounts · rpc edge docs