class MinerSetCoinbase implements JsonRpcMethod {

  @Override
  public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {
    try {
      final Address coinbase = requestContext.getRequiredParameter(0, Address.class);
      miningCoordinator.setCoinbase(coinbase);
      return new JsonRpcSuccessResponse(requestContext.getRequest().getId(), true);
    } catch (final UnsupportedOperationException ex) {
      return new JsonRpcErrorResponse(
          requestContext.getRequest().getId(), JsonRpcError.INVALID_REQUEST);
    }
  }

  public  MinerSetCoinbase(final MiningCoordinator miningCoordinator);

}