getMultipleAccounts RPC Method
Returns the account information for a list of Pubkeys.
params
arrayrequired
An array of Pubkeys to query, as base-58 encoded strings (up to a maximum of 100)
objectoptional
Configuration object containing the following fields:
result
array
The result will be an array containing either:
null
- if the account at that Pubkey doesn't exist, or- Account objects with the following fields:
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getMultipleAccounts",> "params": [> [> "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",> "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"> ],> {> "encoding": "base58"> }> ]> }> '
Response
{"jsonrpc": "2.0","result": {"context": { "apiVersion": "2.0.15", "slot": 341197247 },"value": [{"data": ["", "base58"],"executable": false,"lamports": 88849814690250,"owner": "11111111111111111111111111111111","rentEpoch": 18446744073709551615,"space": 0},{"data": ["", "base58"],"executable": false,"lamports": 998763433,"owner": "2WRuhE4GJFoE23DYzp2ij6ZnuQ8p9mJeU6gDgfsjR4or","rentEpoch": 18446744073709551615,"space": 0}]},"id": 1}
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getMultipleAccounts",> "params": [> [> "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",> "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"> ],> {> "encoding": "base58"> }> ]> }> '
params
arrayrequired
An array of Pubkeys to query, as base-58 encoded strings (up to a maximum of 100)
objectoptional
Configuration object containing the following fields:
result
Response
{"jsonrpc": "2.0","result": {"context": { "apiVersion": "2.0.15", "slot": 341197247 },"value": [{"data": ["", "base58"],"executable": false,"lamports": 88849814690250,"owner": "11111111111111111111111111111111","rentEpoch": 18446744073709551615,"space": 0},{"data": ["", "base58"],"executable": false,"lamports": 998763433,"owner": "2WRuhE4GJFoE23DYzp2ij6ZnuQ8p9mJeU6gDgfsjR4or","rentEpoch": 18446744073709551615,"space": 0}]},"id": 1}
array
The result will be an array containing either:
null
- if the account at that Pubkey doesn't exist, or- Account objects with the following fields:
Is this page helpful?