class EthCoinbase implements JsonRpcMethod {

  @Override
  public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {
    final Optional<Address> coinbase = miningCoordinator.getCoinbase();
    if (coinbase.isPresent()) {
      return new JsonRpcSuccessResponse(
          requestContext.getRequest().getId(), coinbase.get().toString());
    }
    return new JsonRpcErrorResponse(
        requestContext.getRequest().getId(), JsonRpcError.COINBASE_NOT_SPECIFIED);
  }

  public  EthCoinbase(final MiningCoordinator miningCoordinator);

}