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.
-
-
Field Summary
-
Fields inherited from class nxt.http.APIServlet.APIRequestHandler
DESCRIPTION_FIELD, MESSAGE_FIELD, NAME_FIELD
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
allowRequiredBlockParameters()
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, 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
-
-