getTransactionCount method

Future<int> getTransactionCount(
  1. String address, [
  2. String? blockTag
])

Returns the number of transactions address has ever sent, as of blockTag.

This value is required to be the nonce for the next transaction from address sent to the network.

Implementation

Future<int> getTransactionCount(String address, [String? blockTag]) =>
    call<int>(
      'getTransactionCount',
      blockTag != null ? [address, blockTag] : [address],
    );