fetchBalance method

Future<Amount> fetchBalance({
  1. required String address,
})

Fetch Balance

Implementation

Future<Amount> fetchBalance({
  required String address,
}) async {
  final balance = await performTask((client) => client.getBalance(address));
  return Amount(
    value: balance,
    decimals: type.coin.decimals,
  );
}