getTokenLargestAccounts RPC Method
Returns the 20 largest accounts of a particular SPL Token type.
Parameters
string
required
Pubkey of the token Mint to query, as base-58 encoded string
object
optional
Configuration object containing the following fields:
commitment string
optional
Result
The result will be an RpcResponse JSON object with value
equal to an array of
JSON objects containing:
address: <string>
- the address of the token accountamount: <string>
- the raw token account balance without decimals, a string representation of u64decimals: <u8>
- number of base 10 digits to the right of the decimal placeuiAmount: <number|null>
- the token account balance, using mint-prescribed decimals DEPRECATEDuiAmountString: <string>
- the token account balance as a string, using mint-prescribed decimals