getGasPrice method

Future<BigInt> getGasPrice()

Gets the current gas price.

Implementation

Future<BigInt> getGasPrice() async {
  final result = await call<String>('eth_gasPrice', []);
  return BigInt.parse(result.substring(2), radix: 16);
}