getBalance method
Get the balance (in microAlgos) of the given address. Given a specific account public key, this call returns the current balance.
Throws an AlgorandException if there is an HTTP error. Returns the account's balance in microAlgos.
Implementation
Future<int> getBalance(String address) async {
final response = await _indexer.getAccountById(address);
return response.account.amountWithoutPendingRewards;
}