getNonceByAddress static method

Future<int?> getNonceByAddress(
  1. String address, {
  2. bool txPool = true,
  3. RpcConfig? config,
})

getNonceByAddress is the same as getNonce

Implementation

static Future<int?> getNonceByAddress(String address,
    {bool txPool = true, RpcConfig? config}) async {
  try {
    return await _methodChannel.invokeMethod('getNonce', {
      'address': address,
      'txPool': txPool,
      'seedRpc': config?.seedRPCServerAddr?.isNotEmpty == true
          ? config?.seedRPCServerAddr
          : [DEFAULT_SEED_RPC_SERVER],
    });
  } catch (e) {
    rethrow;
  }
}