getTransactionCount method

Future<int> getTransactionCount({
  1. BlockTag? blockTag,
})

Implementation

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