Parameters
- addressstringREQUIRED
The address of the account owner to query encoded as a base-58 string
- objectobjectREQUIRED
The JSON object with the following fields: (Either 'mint' or 'programId' can be used at a time)
- mintstring
The address of the specific token Mint to limit accounts to, as a base-58 encoded string
- programIdstring
The address of the Token program that owns the accounts, as a base-58 encoded string
- objectobject
The JSON object with the following fields:
- commitmentstring
The level of commitment required for the query. The options include:
- finalizedstring
The node will query the most recent block the cluster has recognized as finalized
- confirmedstring
The node will query the most recent block that has been voted on by the supermajority of the cluster
- processedstring
The node will query its most recent block. Note that the block may not be complete
- encodingstring
(Default: binary) The encoding format for account data. It can be one of base58 (slow), base64, binary (deprecated), base64+zstd or jsonParsed
- dataSlicestring
The returned account data using the provided offset: 'usize' and length: 'usize' fields; only available for base58, base64, or base64+zstd encodings
- minContextSlotinteger
The minimum slot at which the request can be evaluated
Returns
- result
An object with the following fields:
- context
The information about the current state of the program
- apiVersion
The version of the Solana RPC API to use
- slot
An integer representing the slot for which to retrieve the fee calculator
- value
A JSON object with the following fields:
- account
An address on the Solana blockchain that is used to store assets
- data
Token state data associated with the account. Format depends on encoding parameter:
- If the encoding parameter is left as the deprecated default of
binary, this will be a string containing encoded binary data. - If
base58,base64, orbase64+zstdis specified, this will be an array, where the first element is the encoded data string and the second element is the encoding format. - If
jsonParsedis specified, this will be JSON format{<program>: <state>}.
- parsed
An array of parsed instructions that were executed in the block's transactions
- info
An array of information objects that provide additional details about the transactions in the block
- isNative
A boolean value indicating whether the token is a native token of the Solana blockchain
- mint
Provides information about the creation of new tokens
- owner
The base-58 encoded address of the program this account has been assigned to
- state
The current state of the token account
- tokenAmount
The balance of the token in the token account
- amount
The raw total token supply without decimals, a string representation of a u64 integer
- decimals
An integer value representing the number of decimal places used by the token
- uiAmount
The total token supply using mint-prescribed decimals (DEPRECATED)
- uiAmountString
The total token supply as a string using mint-prescribed decimals
- type
The type of the block. It can be used to differentiate between regular blocks and special blocks such as snapshot or transaction confirmation blocks
- program
The program that manages the token
- space
The amount of storage space required to store the token account
- If the encoding parameter is left as the deprecated default of
- executable
A boolean indicating if the account contains a program (and is strictly read-only)
- lamports
The number of lamports assigned to this account as u64 (64-bit unsigned integer)
- owner
The base-58 encoded address of the program this account has been assigned to
- rentEpoch
The epoch at which the token account's storage will be subject to rent
- space
The amount of storage space required to store the token account
- pubkey
The public key associated with the token account
1{2"jsonrpc": "2.0",3"result": {4"context": {5"apiVersion": "2.1.21",6"slot": 3355017537},8"value": [9{10"account": {11"data": {12"parsed": {13"info": {14"isNative": false,15"mint": "1YDQ35V8g68FGvcT85haHwAXv1U7XMzuc4mZeEXfrjE",16"owner": "GgPpTKg78vmzgDtP1DNn72CHAYjRdKY7AV6zgszoHCSa",17"state": "initialized",18"tokenAmount": {19"amount": "5",20"decimals": 0,21"uiAmount": 5,22"uiAmountString": "5"23}24},25"type": "account"26},27"program": "spl-token",28"space": 16529},30"executable": false,31"lamports": 2039280,32"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",33"rentEpoch": 18446744073709552000,34"space": 16535},36"pubkey": "9duBrvbQPiNng7ggy58pVhV8RieLZnyD6TuKCMhcqzjp"37}38]39},40"id": 141}
1{2"jsonrpc": "2.0",3"result": {4"context": {5"apiVersion": "2.1.21",6"slot": 3355017537},8"value": [9{10"account": {11"data": {12"parsed": {13"info": {14"isNative": false,15"mint": "1YDQ35V8g68FGvcT85haHwAXv1U7XMzuc4mZeEXfrjE",16"owner": "GgPpTKg78vmzgDtP1DNn72CHAYjRdKY7AV6zgszoHCSa",17"state": "initialized",18"tokenAmount": {19"amount": "5",20"decimals": 0,21"uiAmount": 5,22"uiAmountString": "5"23}24},25"type": "account"26},27"program": "spl-token",28"space": 16529},30"executable": false,31"lamports": 2039280,32"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",33"rentEpoch": 18446744073709552000,34"space": 16535},36"pubkey": "9duBrvbQPiNng7ggy58pVhV8RieLZnyD6TuKCMhcqzjp"37}38]39},40"id": 141}