class EthHashrate implements JsonRpcMethod {

  @Override
  public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {
    final Optional<Long> hashesPerSecond = miningCoordinator.hashesPerSecond();
    return new JsonRpcSuccessResponse(
        requestContext.getRequest().getId(), Quantity.create(hashesPerSecond.orElse(0L)));
  }

  public  EthHashrate(final MiningCoordinator miningCoordinator);

}