getGasPrice method
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<EtherAmount> getGasPrice() async {
final data = await _makeRPCCall<String>('eth_gasPrice');
return EtherAmount.fromUnitAndValue(EtherUnit.wei, hexToInt(data));
}