getGasPrice abstract method

Future<Map<String, EtherAmount>> getGasPrice()

Returns the gas price in wei for a network.

Returns a Future that completes with a Map containing the following keys:

  • 'maxFeePerGas': An EtherAmount representing the maximum fee per gas.
  • 'maxPriorityFeePerGas': An EtherAmount representing the maximum priority fee per gas.

Implementation

Future<Map<String, EtherAmount>> getGasPrice();