public final class IssueCurrency extends CreateTransaction
A currency is the basic block of the Ardor Monetary System it can be exchanged with coins, 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 coins 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 coins 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
CurrencyMintCurrencyType,
HashFunctionCreateTransaction.CreateTransactionParameters| Modifier and Type | Method and Description |
|---|---|
protected org.json.simple.JSONStreamAware |
processRequest(javax.servlet.http.HttpServletRequest req) |
allowRequiredBlockParameters, createTransaction, getCommonFileParameters, getCommonParameters, getRecipientFileParameters, getRecipientParameters, isChainSpecific, requirePost, transactionParameterscanHaveRecipient, getAPITags, getCreateTransactionTypes, getFileParameters, getParameters, getSensitiveParameters, isIgnisOnly, isTextArea, processRequest, requireBlockchain, requiredBlockUpdateLock, requireFullClient, requirePassword, startDbTransactionprotected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest req)
throws NxtException
processRequest in class APIServlet.APIRequestHandlerNxtException