getBalance
Solana node API
getBalance | Solana
The Solana getBalance method returns the current balance of an account for a given public key. Available on Solana via Chainstack.
POST
getBalance
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.
Solana getBalance method
The Solana getBalance method returns the current balance of an account for a given public key.
This method provides the current number of lamports in the account. It is useful for checking the balance of an account at a specific commitment level.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
publicKey— the public key of the account to retrieve the 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 current number of lamports in the account.
Use case
A practical use case forgetBalance is to check the current balance of a Solana account. This can be useful for wallets or other applications that need to display or make use of this information.Last modified on May 18, 2026