SetPhasingTotemControl
Sets phasing (governance) control for a totem.
Endpoint: POST /nxt?requestType=SetPhasingTotemControl
Parameters:
- totem (long, required): Totem ID
- controlVotingModel (int, optional): 1=TOTEM, 2=ACCOUNT, 3=CURRENCY, 4=TRANSACTION
- controlQuorum (int, optional): Minimum votes required
- controlMinBalance (long, optional): Minimum balance to vote
- controlMinBalanceModel (int, optional): Balance model
- controlHolding (long, optional): Holding ID for voting
- controlWhitelisted (long[], optional): Whitelisted account IDs
- controlParams (JSON, optional): Complete phasing params as JSON. If provided, ignores all control* params
- secretPhrase (string, required)
- feeMTA (long, optional)
- deadline (int, optional, default: 1440)
- broadcast (boolean, optional, default: true)
Request Example:
/nxt?requestType=SetPhasingTotemControl&totem=123456789&controlParams={"votingModel":1,"quorum":1000}&secretPhrase=mySecret
Response:
{
"type": 2,
"subtype": 3,
"chain": 1,
"phased": false,
"timestamp": 123456789,
"senderPublicKey": "abc123...",
"sender": "111111111",
"feeMTA": "1000000",
"amountMTA": "0",
"signature": "def456...",
"fullHash": "jkl012...",
"transaction": "1234567890",
"attachment": {
"version.SetPhasingTotemControl": 1,
"totem": "123456789",
"phasingParams": {
"votingModel": 1,
"quorum": 1000,
"minBalance": 100000000,
"holding": "123456789",
"whitelisted": ["111111111"],
"minBalanceModel": 1
}
}
}
Response Fields:
- type: number (2), subtype: number (3) - TOTEM_PHASING_CONTROL_SET
- attachment: SetPhasingTotemControlAttachment
- attachment.phasingParams: PhasingParams object
- phasingParams.votingModel: number
- phasingParams.quorum: number
- phasingParams.minBalance: number
- phasingParams.holding: string
- phasingParams.whitelisted: string[]
- phasingParams.minBalanceModel: number
Tags: AE, CREATE_TRANSACTION Notes: Sender must be totem issuer. Either controlParams or individual control* params required.