getMiningHashrate method

Future<int> getMiningHashrate()

Returns the amount of hashes per second the connected node is mining with.

Implementation

Future<int> getMiningHashrate() {
  return makeRPCCall<String>('eth_hashrate').then((s) => hexToInt(s).toInt());
}