getBalance abstract method
Returns the balance of the account of provided Pubkey
pubKey
Pubkey of account to query, as base-58 encoded string
commitment
For commitment
parameter description see this document
Commitment.processed is not supported as commitment
.
minContextSlot
Set the minimum slot that the request can be evaluated at.
Implementation
Future<BalanceResult> getBalance(
String pubKey, {
Commitment? commitment,
num? minContextSlot,
});