> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getTokenLargestAccounts | Solana

> The getTokenLargestAccounts method is a useful RPC method in Solana that returns the 20 largest accounts for a specific SPL Token type.

## Solana `getTokenLargestAccounts` Method

<Warning>
  `getTokenLargestAccounts` is available on [Dedicated Nodes](/docs/dedicated-node) only.
</Warning>

The `getTokenLargestAccounts` 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.

<Note>
  The interactive example fetches the top 20 holders of the [Jupiter](https://solscan.io/token/JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN#holders) token.
</Note>

## Parameters

* `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.

## Response

* `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.

## Use case

This method is particularly useful for portfolio management applications, market analysis tools, and blockchain explorers that aim to provide detailed insights into token distribution in Solana. By identifying the largest accounts, users can understand the potential influence of key holders on token price and liquidity.


## OpenAPI

````yaml openapi/solana_node_api/getTokenLargestAccounts.json POST /9de47db917d4f69168e3fed02217d15b
openapi: 3.0.0
info:
  title: getTokenLargestAccounts example
  version: 1.0.0
  description: This is an API example for Solana's getTokenLargestAccounts.
servers:
  - url: https://nd-326-444-187.p2pify.com
security: []
paths:
  /9de47db917d4f69168e3fed02217d15b:
    post:
      tags:
        - query
      summary: getTokenLargestAccounts
      operationId: getTokenLargestAccounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: getTokenLargestAccounts
                params:
                  type: array
                  default:
                    - JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN
      responses:
        '200':
          description: Largest token accounts details
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````