getMultipleAccounts RPC Method
Returns the account information for a list of Pubkeys.Parameters
array requiredAn array of Pubkeys to query, as base-58 encoded strings
- Maximum of 100 Pubkeys per request
object optionalConfiguration object containing the following fields:commitment
string optionalThe level of commitment desired when querying stateminContextSlot
number optionalThe minimum slot that the request can be evaluated atdataSlice
object optionalRequest a slice of the account’s data
-
length: <usize>- number of bytes to return -
offset: <usize>- byte offset from which to start reading
string optionalDefault:
base64Allowed Encoding Values:-
jsonParsed -
base58 -
base64 -
base64+zstd
Data Slicing Note
Data slicing is only available forbase58, base64, or base64+zstd encodings.Result Details
The result will be a JSON object withvalue as an array containing:
-
<null>- If the account at the specified Pubkey doesn’t exist -
<object>- Account information, including:-
lamports: <u64>- Number of lamports assigned to the account
-
owner: <string>- Base-58 encoded Pubkey of the program owning the account
-
data: <[string, encoding]|object>- Account data in specified encoding
- Can be encoded binary data or parsed JSON format
-
executable: <bool>- Indicates if the account contains a program
-
truemeans the account is read-only
-
rentEpoch: <u64>- Epoch at which the account will next owe rent
-
space: <u64>- Total data size of the account
-