getTokenLargestAccounts - Solana
getTokenLargestAccounts. returns the largest token accounts of a specified SPL token
getTokenLargestAccounts - solana [Value: 3000CU]
Returns the largest token accounts of a specified SPL token, helping identify major holders and analyze token concentration
Use cases
- Fetch the top accounts holding a particular token
- Track major token holders to gauge distribution
- Examine ownership concentration for a given token
Constraints
- Limited to the specified token's account data
- Depends on current network data accuracy
- API rate limitations might limit query frequency
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl https://solana.drpc.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0", "id":1, "method":"getTokenLargestAccounts", "params": ["1YDQ35V8g68FGvcT85haHwAXv1U7XMzuc4mZeEXfrjE"]}'
Response
200
{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 98123569
},
"value": [
{
"address": "3jYsNSJdV89z4iGxURz4ifKXHpFp7kB1TsX7u3ZQ76F3",
"amount": "5000000000",
"decimals": 6,
"uiAmount": 5000.0,
"uiAmountString": "5000.0"
},
{
"address": "6Fjs8jGqZ4iKy3JsmJJZ7NYA1X9v1wvFmiZD12FkSt9r",
"amount": "3000000000",
"decimals": 6,
"uiAmount": 3000.0,
"uiAmountString": "3000.0"
},
{
"address": "5H3szVqE8fb7vXc9FskKJ2K6X2uS3g9Jx5iLqrPh9zJQ",
"amount": "2000000000",
"decimals": 6,
"uiAmount": 2000.0,
"uiAmountString": "2000.0"
}
]
},
"id": 1
}
Request params
idinteger
jsonrpcstring
methodstring
array
accountPublicKeystring
The public key of the account to query.
commitmentstring
The level of commitment required for the query
- finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
- confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
- processed - The node will query its most recent block. Note that the block may not be complete
Response
200
returns the largest token accounts for a specified mint, including their addresses and balances, providing a snapshot of the largest holders of that tokenResponse params
object
idinteger
jsonrpcstring
resultstring
object
contextobject
Contains information about the current state of the program
object
slotinteger
The slot number used to retrieve the fee calculator.
apiVersionstring
The version of the Solana RPC API being used
valueobject
object
addessstring
amountstring
Raw token supply, without decimals, as a u64 integer.
decimalsinteger
Number of decimal places the token uses.
uiAmountstring
Total token supply with mint-prescribed decimals (DEPRECATED).
uiAmountStringstring
Total token supply as a string, with mint-prescribed decimals.