RPC MethodsHTTPgetTokenLargestAccounts

Token

getTokenLargestAccounts

Returns the 20 largest accounts of a particular SPL Token type.

Parameters

pubkeystring required

Pubkey of the token Mint to query, as base-58 encoded string.

configobject optional

Configuration object.

commitmentstring

Commitment level.

Result

array

Array of objects with address, amount, decimals, and uiAmountString.

Example

Request
JSON
curl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getTokenLargestAccounts",
  "params": ["3wyAj7Rt1TWVPZVteFCPi2bMFn8recJ9eNhWZaBsKFYR", { "commitment": "finalized" }]
}'
Response
JSON
{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 1114
},
"value": [
{
"address": "FYjHNoFtSQ5uijKrZFyYAxvEkiiCGDzfcgG6BoEFAbJL",
"amount": "771090",
"decimals": 2,
"uiAmountString": "7710.90"
}
]
},
"id": 1
}