getTransactionCount method

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

Gets the transaction count (nonce) for an address.

Implementation

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