class EthBlockNumber implements JsonRpcMethod {

  @Override
  public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {
    final long value = blockchain.get().headBlockNumber();
    return new JsonRpcSuccessResponse(
        requestContext.getRequest().getId(), resultAsInteger ? value : Quantity.create(value));
  }

  public  EthBlockNumber(final BlockchainQueries blockchain);
  public  EthBlockNumber(
      final Supplier<BlockchainQueries> blockchain, final boolean resultAsInteger);

}