public final class IssueCurrency extends APIServlet.APIRequestHandler
A currency is the basic block of the NXT Monetary System it can be exchanged with NXT, transferred between accounts, minted using proof of work methods, reserved and claimed as a crowd funding tool.
Pass the following parameters in order to issue a currency
CurrencyType.RESERVABLE
currency
CurrencyType.RESERVABLE
currency
CurrencyType.RESERVABLE
currency
CurrencyType.MINTABLE
currency
CurrencyType.MINTABLE
currency
algorithm
used for minting.
For CurrencyType.MINTABLE
currency
Constraints
CurrencyType.EXCHANGEABLE
nor CurrencyType.CLAIMABLE
.CurrencyType.RESERVABLE
currency becomes active once the blockchain height reaches the currency issuance height.CurrencyType.RESERVABLE
becomes active, in case it is CurrencyType.CLAIMABLE
the NXT used for
reserving the currency are locked until they are claimed back.
When a CurrencyType.RESERVABLE
becomes active, in case it is non CurrencyType.CLAIMABLE
the NXT used for
reserving the currency are sent to the issuer account as crowd funding.
CurrencyType.MINTABLE
currency, the number of units per CurrencyMint
cannot exceed 0.01% of the
total supply. Therefore make sure totalSupply > 10000 or otherwise the currency cannot be minted
CurrencyMint
CurrencyType
,
HashFunction
DESCRIPTION_FIELD, MESSAGE_FIELD, NAME_FIELD
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowRequiredBlockParameters() |
protected org.json.simple.JSONStreamAware |
processRequest(javax.servlet.http.HttpServletRequest req) |
protected boolean |
requirePost() |
getAPITags, getFileParameter, getParameters, processRequest, requireBlockchain, requireFullClient, requirePassword, startDbTransaction
protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest req) throws NxtException
processRequest
in class APIServlet.APIRequestHandler
NxtException
protected final boolean requirePost()
requirePost
in class APIServlet.APIRequestHandler
protected final boolean allowRequiredBlockParameters()
allowRequiredBlockParameters
in class APIServlet.APIRequestHandler