Ejemplo n.º 1
0
 @Override
 JSONStreamAware processRequest(HttpServletRequest req) throws NxtException {
   Currency currency = ParameterParser.getCurrency(req);
   long units = ParameterParser.getLong(req, "units", 0, currency.getReserveSupply(), false);
   Account account = ParameterParser.getSenderAccount(req);
   Attachment attachment = new Attachment.MonetarySystemReserveClaim(currency.getId(), units);
   return createTransaction(req, account, attachment);
 }