Package nxt.http
Class SetPhasingOnlyControl
- java.lang.Object
-
- nxt.http.APIServlet.APIRequestHandler
-
- nxt.http.SetPhasingOnlyControl
-
public final class SetPhasingOnlyControl extends APIServlet.APIRequestHandler
Sets an account control that blocks transactions unless they are phased with certain parametersParameters
- 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.
- controlMinDuration - The minimum phasing duration (finish height minus current height).
- controlHolding - The maximum allowed phasing duration.
- controlVotingModel - The expected voting model of the phasing. Possible values:
-
-
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 request)
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 request) 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
-
-