getTransactionCount method

Future<BigInt> getTransactionCount(
  1. String address
)

Implementation

Future<BigInt> getTransactionCount(String address) async {
  final response = await _call<String>(
    'eth_getTransactionCount',
    args: [address, 'latest'],
  );

  final count = response.toBigIntOrNull;
  if (count == null) throw Exception('Could not parse transaction count');
  return count;
}