getAccountBalance method
Return the ICP account balance of the specified account. @param {string} accountAddress The account address to get the ICP balance of. @returns {Promise<BigNumber|TransactionError>} The ICP account balance of the specified account, or a TransactionError for error.
Implementation
Future<BigInt> getAccountBalance(accountAddress) async {
final response = await accountBalanceByAddress(accountAddress);
return response.balances[0].valueInBigInt;
}