Parameters
pubkeysarray required An array of Pubkeys to query, as base-58 encoded strings (up to 100).
configobject optional Configuration object.
commitmentstringCommitment level.
encodingstringEncoding for account data.
dataSliceobjectLimit the returned account data.
minContextSlotnumberThe minimum slot.
Result
arrayAn array of account objects or null (for accounts that don't exist).
Example
Request
JSONcurl "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
}