getBalance

suspend fun SolanaClient.getBalance(account: PublicKey, commitment: Commitment? = null): Response<Response.RPC<Long>>

Return

The balance of the account of provided PublicKey

Parameters

account

Pubkey of account to query

commitment

Optional Commitment level