Skip to main content

GetPhasingTotemControl

Retrieves the phasing control configuration for a totem.

Endpoint: GET /nxt?requestType=GetPhasingTotemControl

Parameters:

  • totem (long, required): The totem ID

Request Example: /nxt?requestType=GetPhasingTotemControl&totem=123456789

Response:

{
"totem": "123456789",
"totemName": "Governed Totem",
"controlParams": {
"votingModel": 1,
"quorum": 1000,
"minBalance": 100000000,
"holding": "123456789",
"whitelisted": ["111111111", "222222222"],
"minBalanceModel": 1,
"votingPeriod": 1440,
"votingDeadline": 1440
}
}

Response Fields:

  • totem: string - Totem ID (unsigned string)
  • totemName: string - Human-readable name of the totem
  • controlParams: object - Phasing control parameters from TotemControl.PhasingOnly
  • controlParams.votingModel: number - Voting model (1=TOTEM, 2=ACCOUNT, 3=CURRENCY, 4=TRANSACTION)
  • controlParams.quorum: number - Minimum number of votes required for approval
  • controlParams.minBalance: number - Minimum balance (in NQT or totem QNT) required to vote
  • controlParams.holding: string - Totem ID used for voting (unsigned string)
  • controlParams.whitelisted: string[] - Array of whitelisted account IDs (unsigned strings)
  • controlParams.minBalanceModel: number - Balance model for voting
  • controlParams.votingPeriod: number - Voting period in blocks
  • controlParams.votingDeadline: number - Voting deadline in blocks

Source: GetPhasingTotemControl.java, JSONData.phasingOnly() Notes: Returns empty JSON if the totem has no phasing control configured. Not chain-specific.