getGasPrice method

Future<BigInt> getGasPrice()

Returns the amount of Ether typically needed to pay for one unit of gas.

Although not strictly defined, this value will typically be a sensible amount to use.

Implementation

Future<BigInt> getGasPrice() async {
  final data = await _makeRPCCall<String>('eth_gasPrice');
  return hexToInt(data);
}