> ## 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.

# getTokenAccountBalance | Solana

> The Solana getTokenAccountBalance method returns the token balance of an account. getTokenAccountBalance on Solana via Chainstack.

# Solana `getTokenAccountBalance` method

The Solana `getTokenAccountBalance` method returns the token balance of an account.

This method provides the token balance of a specific account, which is the amount of tokens the account holds. It is useful for tracking the token balance of an account.

<Note>
  The interactive example is querying on the Solana mainnet the top USDC token account holder, which is Circle.
</Note>

## Parameters

* `accountPubkey` — the public key of the account to retrieve the token balance for.
* `commitment` — (optional) the level of commitment desired:
  * `processed` — the node has processed the block and the block may be on a fork.
  * `confirmed` — the block is confirmed by the cluster as not being on a fork.
  * `finalized` — the block is finalized by the cluster.

## Response

* `value` — the token balance of the account:
  * `amount` — the amount of tokens the account holds.
  * `decimals` — the number of decimal places the token has.
  * `uiAmount` — the amount of tokens the account holds, adjusted for decimals.

## Use case

A practical use case for `getTokenAccountBalance` is to track the token balance of an account. This can be useful for wallets or other applications that need to display or make use of this information.


## OpenAPI

````yaml openapi/solana_node_api/getTokenAccountBalance.json POST /9de47db917d4f69168e3fed02217d15b
openapi: 3.0.0
info:
  title: getTokenAccountBalance example
  version: 1.0.0
  description: This is an API example for Solana's getTokenAccountBalance.
servers:
  - url: https://nd-326-444-187.p2pify.com
security: []
paths:
  /9de47db917d4f69168e3fed02217d15b:
    post:
      tags:
        - query
      summary: getTokenAccountBalance
      operationId: getTokenAccountBalance
      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: getTokenAccountBalance
                params:
                  type: array
                  default:
                    - 3emsAVdmGKERbHjmGfQ6oZ1e35dkf5iYcS6U4CPKFVaa
      responses:
        '200':
          description: Token account balance details
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````