getBalance method

Future<BigInt> getBalance({
  1. BlockTag? blockTag,
})

========================================================================== Sub-classes MAY override these

Implementation

Future<BigInt> getBalance({
  BlockTag? blockTag,
}) async {
  if (provider == null) {
    throw 'missing provider';
  }
  final address = await getAddress();
  return await provider!.getBalance(
    address,
    blockTag: blockTag,
  );
}