Solana RPC · Accounts & balances

POST getMultipleAccounts

Account info for many accounts in one call.

Endpoint

POST  https://solrpc.infinityblocks.io/<API_KEY>

Standard Solana JSON-RPC 2.0 over HTTP POST. The API key is part of the URL path.

Parameters

ParamTypeRequiredDescription
addressesstring[]yesArray of base-58 pubkeys (max 100).
configobjectnoencoding, commitment, dataSlice.

Request

curl -s https://solrpc.infinityblocks.io/<API_KEY> \
  -X POST -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getMultipleAccounts","params":[["<ADDRESS_1>","<ADDRESS_2>"],{"encoding":"base64"}]}'

With @solana/web3.js

const accts = await rpc.getMultipleAccountsInfo([new PublicKey("<A1>"), new PublicKey("<A2>")]);

Response

{ "jsonrpc": "2.0", "id": 1, "result": { "context": { "slot": 423214981 }, "value": [ { "lamports": 12480000, "owner": "…", "data": ["","base64"], "executable": false, "space": 165 }, null ] } }

Try it

Run getMultipleAccountslive · POST

Replace placeholders (e.g. <ADDRESS>) with real values. Your key is stored only in this browser.