Package nxt.http
Class SetPhasingAssetControl
java.lang.Object
nxt.http.APIServlet.APIRequestHandler
nxt.http.CreateTransaction
nxt.http.SetPhasingAssetControl
Sets a restriction on certain asset that blocks transactions operating with this asset unless they are phased with certain parameters.
If no control is currently set for the specified asset, the sender must the be asset issuer.
Parameters
- assetId - The asset
- transactionType - One or more transaction types to which the asset control is applied (or from which
the asset control is removed if the voting model is NONE). Possible values:
- ASSET_TRANSFER
- ASSET_DELETE
- ASK_ORDER_PLACEMENT
- BID_ORDER_PLACEMENT
- ASK_ORDER_CANCELLATION
- BID_ORDER_CANCELLATION
- DIVIDEND_PAYMENT
- ASSET_PROPERTY_SET
- ASSET_PROPERTY_DELETE
- SET_ASSET_CONTROL
AssetControlTxTypesEnum.DEFAULT_TYPES - control* - If controlParams is missing, the asset control parameters can be specified one-by-one, without using JSON, with prefix "control" (to differentiate from the parameters used to phase the transaction)
- controlParams - A JSON with all phasing parameters. Use the parsePhasingParams API to get this JSON. If provided, all control* parameters are ignored
-
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
-