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

# getTokenLargestAccounts

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

### Parameters

<ParamField query="chainId" type="string" default="solana-devnet" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="getTokenLargestAccounts" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E"]} placeholder="[&#x22;3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E&#x22;]" required>
  Parameters for method getTokenLargestAccounts: \[mintAddress, config]

  Positional parameters for <code>getTokenLargestAccounts</code>:

  <ul>
    <li><code>params\[0]</code>: Pubkey of the token Mint to query (base-58 encoded string).</li>
    <li><code>params\[1]</code>: Optional configuration object.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="array">
  Array of the 20 largest token accounts for the specified mint.

  <Expandable title="items">
    <ResponseField name="items[]" type="object">
      Largest token account object.

      <Expandable title="properties">
        <ResponseField name="address" type="string">
          Token account address (base-58 encoded).
        </ResponseField>

        <ResponseField name="amount" type="string">
          Raw token balance without decimals (string representation of u64).
        </ResponseField>

        <ResponseField name="decimals" type="integer">
          Number of base 10 digits to the right of the decimal place.
        </ResponseField>

        <ResponseField name="uiAmount" type="number">
          Deprecated. Token balance using mint-prescribed decimals.
        </ResponseField>

        <ResponseField name="uiAmountString" type="string">
          Token balance as a string using mint-prescribed decimals.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "getTokenLargestAccounts",
      "params": [
        "3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E"
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": []
  }
  ```
</ResponseExample>
