getBalance method

Future<EtherAmount> getBalance({
  1. String? address,
})

Implementation

Future<EtherAmount> getBalance({String? address}) async {
  EthereumAddress a;
  if (address != null && address != "") {
    a = EthereumAddress.fromHex(address);
  } else {
    a = await _credentials.extractAddress();
  }
  return await _client.getBalance(a);
}