getTokenLargestAccounts RPC Method
Returns the 20 largest accounts of a particular SPL Token type.
params
stringrequired
Pubkey of the token Mint to query, as base-58 encoded string
objectoptional
Configuration object containing the following fields:
result
array
An array of JSON objects containing:
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getTokenLargestAccounts",> "params": [> "3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E"> ]> }> '
Response
{"jsonrpc": "2.0","result": {"context": { "slot": 1114 },"value": [{"address": "FYjHNoFtSQ5uijKrZFyYAxvEr87hsKXkXcxkcmkBAf4r","amount": "771","decimals": 2,"uiAmount": 7.71,"uiAmountString": "7.71"},{"address": "BnsywxTcaYeNUtzrPxQUvzAWxfzZe3ZLUJ4wMMuLESnu","amount": "229","decimals": 2,"uiAmount": 2.29,"uiAmountString": "2.29"}]},"id": 1}
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getTokenLargestAccounts",> "params": [> "3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E"> ]> }> '
params
stringrequired
Pubkey of the token Mint to query, as base-58 encoded string
objectoptional
Configuration object containing the following fields:
result
Response
{"jsonrpc": "2.0","result": {"context": { "slot": 1114 },"value": [{"address": "FYjHNoFtSQ5uijKrZFyYAxvEr87hsKXkXcxkcmkBAf4r","amount": "771","decimals": 2,"uiAmount": 7.71,"uiAmountString": "7.71"},{"address": "BnsywxTcaYeNUtzrPxQUvzAWxfzZe3ZLUJ4wMMuLESnu","amount": "229","decimals": 2,"uiAmount": 2.29,"uiAmountString": "2.29"}]},"id": 1}
array
An array of JSON objects containing:
Is this page helpful?