RPC MethodsHTTPgetMultipleAccounts

Account

getMultipleAccounts

Returns the account information for a list of Pubkeys.

Parameters

pubkeysarray required

An array of Pubkeys to query, as base-58 encoded strings (up to 100).

configobject optional

Configuration object.

commitmentstring

Commitment level.

encodingstring

Encoding for account data.

dataSliceobject

Limit the returned account data.

minContextSlotnumber

The minimum slot.

Result

array

An array of account objects or null (for accounts that don't exist).

Example

Request
JSON
curl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getMultipleAccounts",
  "params": [
    ["vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg", "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"],
    { "commitment": "finalized", "encoding": "base58" }
  ]
}'
Response
JSON
{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 1
},
"value": [
{
"data": [
"",
"base58"
],
"executable": false,
"lamports": 1000000000,
"owner": "11111111111111111111111111111111",
"rentEpoch": 2,
"space": 0
},
{
"data": [
"",
"base58"
],
"executable": false,
"lamports": 5000000000,
"owner": "11111111111111111111111111111111",
"rentEpoch": 2,
"space": 0
}
]
},
"id": 1
}