getBalance method

Future<BalanceResponse?> getBalance(
  1. GetBalanceOptions options
)

Implementation

Future<BalanceResponse?> getBalance(GetBalanceOptions options) async {
  Commitment commitment = _getCommitment(options.commitment);

  return accountApi.getBalance(
    sdkConfig.environment,
    sdkConfig.index,
    options.account,
    commitment,
  );
}