SetPhasingTotemControl
Sets phasing control parameters for a totem, restricting transactions unless they follow specified phasing parameters.
Request
POST /nxt?requestType=setPhasingTotemControl
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
totem | string | Totem ID | Yes |
controlVotingModel | int | Voting model (quorum-based) | Yes |
controlQuorum | int | Quorum percentage (0-100) | Yes |
controlMinBalance | long | Minimum balance requirement | Yes |
controlMinBalanceModel | int | Minimum balance model | No |
controlHolding | string | Holding type | No |
controlWhitelisted | boolean | Whitelist mode | No |
controlSenderPropertySetter | string | Sender property setter | No |
controlSenderPropertyName | string | Sender property name | No |
controlSenderPropertyValue | string | Sender property value | No |
controlRecipientPropertySetter | string | Recipient property setter | No |
controlRecipientPropertyName | string | Recipient property name | No |
controlRecipientPropertyValue | string | Recipient property value | No |
controlIdentityDataGender | string | Identity data gender | No |
controlIdentityDataNationality | string | Identity data nationality | No |
controlIdentityDataMinAge | int | Identity data minimum age | No |
controlIdentityDataMaxAge | int | Identity data maximum age | No |
controlCertificateIssuer | string | Certificate issuer | No |
controlCertificateName | string | Certificate name | No |
controlCertificateType | string | Certificate type | No |
controlExpression | string | Expression string | No |
controlParams | string | JSON with all phasing parameters (overrides individual params) | No |
secretPhrase | string | Sender's secret passphrase | Yes |
Response
{
"transaction": "1234567890123456789",
"fullHash": "abc123def456...",
"errorCode": 0,
"errorDescription": ""
}
Example
curl -X POST "http://localhost:22024/nxt?requestType=setPhasingTotemControl" \
-d "totem=1234567890123456789" \
-d "controlVotingModel=1" \
-d "controlQuorum=51" \
-d "controlMinBalance=1000" \
-d "secretPhrase=your_secret_passphrase"