getBalance method

Future<BigInt> getBalance(
  1. String address, [
  2. String block = 'latest'
])

Gets the balance of an address.

Implementation

Future<BigInt> getBalance(String address, [String block = 'latest']) async {
  final result = await call<String>('eth_getBalance', [address, block]);
  return BigInt.parse(result.substring(2), radix: 16);
}