Package nxt.http
Class CurrencyReserveClaim
- java.lang.Object
-
- nxt.http.APIServlet.APIRequestHandler
-
- nxt.http.CurrencyReserveClaim
-
public final class CurrencyReserveClaim extends APIServlet.APIRequestHandler
Claim currency units and receive back NXT invested into this currency before it became activeParameters
- currency - currency id
- units - the number of currency units claimed
This value is multiplied by current currency rate and the result is added to the sender NXT account balance.
Constraints
This transaction is allowed only when the currency is
CurrencyType.CLAIMABLE
and is already active.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
allowRequiredBlockParameters()
static java.util.List<java.lang.String>
getCommonParameters()
protected org.json.simple.JSONStreamAware
processRequest(javax.servlet.http.HttpServletRequest req)
protected boolean
requirePost()
-
Methods inherited from class nxt.http.APIServlet.APIRequestHandler
getAPITags, getFileParameter, getParameters, isPassword, isTextArea, processRequest, requireBlockchain, requireFullClient, requirePassword, startDbTransaction
-
-
-
-
Method Detail
-
processRequest
protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest req) throws NxtException
- Specified by:
processRequest
in classAPIServlet.APIRequestHandler
- Throws:
NxtException
-
requirePost
protected final boolean requirePost()
- Overrides:
requirePost
in classAPIServlet.APIRequestHandler
-
allowRequiredBlockParameters
protected final boolean allowRequiredBlockParameters()
- Overrides:
allowRequiredBlockParameters
in classAPIServlet.APIRequestHandler
-
getCommonParameters
public static java.util.List<java.lang.String> getCommonParameters()
-
-