getWalletBalance method

Future<int> getWalletBalance(
  1. String addressOrPublicKey
)

Implementation

Future<int> getWalletBalance(String addressOrPublicKey) async {
  final wallet = await getWallet(addressOrPublicKey);
  return wallet != null ? int.parse(wallet.balance) : 0;
}