estimateGas static method

Future<BigInt> estimateGas(
  1. EstimateGasParameters estimateGasParameters, {
  2. String configKey = 'default',
})

Implementation

static Future<BigInt> estimateGas(
    EstimateGasParameters estimateGasParameters, {
      String configKey = 'default',
    }) =>
    _guardFuture(() async {
      _logAction('estimateGas');
      final result = await window.wagmiCore
          .estimateGas(
        configKey.toJS,
        estimateGasParameters.toJS,
      )
          .toDart;
      return result.toDart;
    });