curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getTokenLargestAccounts",
"params": [
"JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}
curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getTokenLargestAccounts",
"params": [
"JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}
getTokenLargestAccounts
MethodgetTokenLargestAccounts
method is a useful RPC method in Solana that returns the 20 largest accounts for a specific SPL Token type.
This method offers a snapshot of the largest token holders, providing insights into the token’s distribution and potential market dynamics. This can be particularly useful for developers, analysts, and investors looking to gauge the distribution of tokens in the Solana ecosystem.
Pubkey
— a base-58 encoded string that represents the public key of the token Mint to query.Config
(optional) — an object to customize the query:
commitment
(optional) — specifies the level of commitment desired for the query, allowing users to choose the state the returned information represents.address
— the base-58 encoded string of the token account address.amount
— the token account balance represented as a string of u64, without considering the decimals.decimals
— the number of base ten digits to the right of the decimal place, indicating the token’s divisibility.uiAmountString
— the token account balance as a string, adjusted for mint-prescribed decimals, providing a more understandable representation of the balance.Largest token accounts details
The response is of type object
.
Was this page helpful?