string
requiredobject
optionalstring
optionalencoding string
optionalbase58
base64
base64+zstd
jsonParsed
base58
is slow and limited to less than 129 bytes of Account data
base64
will return base64 encoded data for Account data of any size
base64+zstd
compresses the Account data using Zstandard and base64-encodes the result
jsonParsed
encoding attempts to use program-specific state parsers
object
optionallength: <usize>
- number of bytes to return
offset: <usize>
- byte offset from which to start reading
number
optionalvalue
equal to:
<null>
- if the requested account doesn’t exist
<object>
- otherwise, a JSON object containing:
lamports: <u64>
- number of lamports assigned to this account
owner: <string>
- base-58 encoded Pubkey of the program this account has been assigned to
data: <[string, encoding]|object>
- data associated with the account
executable: <bool>
- boolean indicating if the account contains a program
rentEpoch: <u64>
- the epoch at which this account will next owe rent
space: <u64>
- the data size of the account