getGasPrice static method

Future<BigInt> getGasPrice(
  1. GetGasPriceParameters getGasPriceParameters, {
  2. String configKey = 'default',
})

Implementation

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