Returns the account information for a list of Pubkeys.
array
required
An array of Pubkeys to query, as base-58 encoded strings
object
optional
Configuration object containing the following fields:
commitment string
optional
The level of commitment desired when querying state
minContextSlot number
optional
The minimum slot that the request can be evaluated at
dataSlice object
optional
Request a slice of the account’s data
length: <usize>
- number of bytes to return
offset: <usize>
- byte offset from which to start reading
encoding string
optional
Default: base64
Allowed Encoding Values:
jsonParsed
base58
base64
base64+zstd
Data slicing is only available for base58
, base64
, or base64+zstd
encodings.
The result will be a JSON object with value
as an array containing:
<null>
- If the account at the specified Pubkey doesn’t exist
<object>
- Account information, including:
lamports: <u64>
owner: <string>
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
true
means the account is read-only
rentEpoch: <u64>
space: <u64>