Package nxt.http
Class CurrencyReserveIncrease
java.lang.Object
nxt.http.APIServlet.APIRequestHandler
nxt.http.CreateTransaction
nxt.http.CurrencyReserveIncrease
Increase the value of currency units by paying coin
Parameters
- currency - currency id
- amountPerUnitNQT - the NQT amount invested into increasing the value of a single whole currency unit.
This value is multiplied by the currency total supply and the result is deducted from the sender's account balance.
Constraints
This API is allowed only when the currency is CurrencyType.RESERVABLE and is not yet active.
The sender account is registered as a founder. Once the currency becomes active
the total supply is distributed between the founders based on their proportional investment
The list of founders and their NQT investment can be obtained using the GetCurrencyFounders API.
-
Nested Class Summary
Nested classes/interfaces inherited from class nxt.http.CreateTransaction
CreateTransaction.CreateTransactionParameters -
Method Summary
Modifier and TypeMethodDescriptionprotected org.json.simple.JSONStreamAwareprocessRequest(javax.servlet.http.HttpServletRequest req) Methods inherited from class nxt.http.CreateTransaction
allowRequiredBlockParameters, createTransaction, getCommonFileParameters, getCommonParameters, getRecipientFileParameters, getRecipientParameters, isChainSpecific, requirePost, transactionParametersMethods inherited from class nxt.http.APIServlet.APIRequestHandler
canHaveRecipient, getAPITags, getCreateTransactionTypes, getFileParameters, getParameters, getSensitiveParameters, isIgnisOnly, isTextArea, processRequest, requireBlockchain, requiredBlockUpdateLock, requireFullClient, requirePassword, startDbTransaction
-
Method Details
-
processRequest
protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest req) throws NxtException - Specified by:
processRequestin classAPIServlet.APIRequestHandler- Throws:
NxtException
-