Package nxt.http
Class SetPhasingOnlyControl
java.lang.Object
nxt.http.APIServlet.APIRequestHandler
nxt.http.CreateTransaction
nxt.http.SetPhasingOnlyControl
Sets an account control that blocks transactions unless they are phased with certain parameters
Parameters
- controlVotingModel - The expected voting model of the phasing. Possible values:
- NONE(-1) - the phasing control is removed
- ACCOUNT(0) - only by-account voting is allowed
- NQT(1) - only balance voting is allowed
- ASSET(2) - only asset voting is allowed
- CURRENCY(3) - only currency voting is allowed
- controlQuorum - The expected quorum.
- controlMinBalance - The expected minimum balance
- controlMinBalanceModel - The expected minimum balance model. Possible values:
- NONE(0) No minimum balance restriction
- NQT(1) Nxt balance threshold
- ASSET(2) Asset balance threshold
- CURRENCY(3) Currency balance threshold
- controlHolding - The expected holding ID - asset ID or currency ID.
- controlWhitelisted - multiple values - the expected whitelisted accounts
- controlMaxFees - The maximum allowed accumulated total fees for not yet finished phased transactions, as ':' separated chainId:maxFee values.
- controlMinDuration - The minimum phasing duration (finish height minus current height).
- controlHolding - The maximum allowed phasing duration.
-
Nested Class Summary
Nested classes/interfaces inherited from class nxt.http.CreateTransaction
CreateTransaction.CreateTransactionParameters -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected org.json.simple.JSONStreamAwareprocessRequest(javax.servlet.http.HttpServletRequest request) 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, isTextArea, processRequest, requireBlockchain, requiredBlockUpdateLock, requireFullClient, requirePassword, startDbTransaction
-
Method Details
-
processRequest
protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest request) throws NxtException - Specified by:
processRequestin classAPIServlet.APIRequestHandler- Throws:
NxtException
-
isIgnisOnly
public boolean isIgnisOnly()- Overrides:
isIgnisOnlyin classAPIServlet.APIRequestHandler
-