Returns all SPL Token accounts by token owner.
string
required
Pubkey of account owner to query
object
required
A JSON object with one of the following fields:
mint: <string>
- Pubkey of the specific token Mint
programId: <string>
- Pubkey of the Token program that owns the accounts
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 returnoffset: <usize>
- byte offset from which to start readingencoding string
optional
Encoding format for Account data
Allowed Encoding Values:
base58
base64
base64+zstd
jsonParsed
Data slicing is only available for base58
, base64
, or base64+zstd
encodings.
The result is an RpcResponse JSON object with value
as an array of account objects:
pubkey: <string>
account: <object>
lamports: <u64>
- Number of lamports in the accountowner: <string>
- Pubkey of the program owning the accountdata: <object>
- Token state dataexecutable: <bool>
- Indicates if the account contains a programrentEpoch: <u64>
- Epoch when rent is next duespace: <u64>
- Size of the account datajsonParsed
encoding, expect a Token Balances StructuretokenAmount
provides detailed token balance informationdelegatedAmount
may be present in the parsed dataReturns all SPL Token accounts by token owner.
string
required
Pubkey of account owner to query
object
required
A JSON object with one of the following fields:
mint: <string>
- Pubkey of the specific token Mint
programId: <string>
- Pubkey of the Token program that owns the accounts
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 returnoffset: <usize>
- byte offset from which to start readingencoding string
optional
Encoding format for Account data
Allowed Encoding Values:
base58
base64
base64+zstd
jsonParsed
Data slicing is only available for base58
, base64
, or base64+zstd
encodings.
The result is an RpcResponse JSON object with value
as an array of account objects:
pubkey: <string>
account: <object>
lamports: <u64>
- Number of lamports in the accountowner: <string>
- Pubkey of the program owning the accountdata: <object>
- Token state dataexecutable: <bool>
- Indicates if the account contains a programrentEpoch: <u64>
- Epoch when rent is next duespace: <u64>
- Size of the account datajsonParsed
encoding, expect a Token Balances StructuretokenAmount
provides detailed token balance informationdelegatedAmount
may be present in the parsed data