Skip to main content

ParsePhasingParams

Parses phasing parameters into a JSON object that can be used with the SetPhasingTotemControl endpoint.

Request

GET /nxt?requestType=parsePhasingParams

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
accountstringAccount ID or SHAMWARI addressYes
phasingModelintPhasing modelYes
phasingQuorumintPhasing quorumYes
phasingMinBalanceintPhasing minimum balanceYes
phasingHoldingstringPhasing holding typeNo
phasingWhitelistedstringPhasing whitelistedNo
phasingSenderPropertySetterstringPhasing sender property setterNo
phasingSenderPropertyNamestringPhasing sender property nameNo
phasingSenderPropertyValuestringPhasing sender property valueNo
phasingRecipientPropertySetterstringPhasing recipient property setterNo
phasingRecipientPropertyNamestringPhasing recipient property nameNo
phasingRecipientPropertyValuestringPhasing recipient property valueNo
phasingIdentityDataGenderstringPhasing identity data genderNo
phasingIdentityDataNationalitystringPhasing identity data nationalityNo
phasingIdentityDataMinAgeintPhasing identity data minimum ageNo
phasingIdentityDataMaxAgeintPhasing identity data maximum ageNo
phasingCertificateIssuerstringPhasing certificate issuerNo
phasingCertificateNamestringPhasing certificate nameNo
phasingCertificateTypestringPhasing certificate typeNo
phasingExpressionstringPhasing expressionNo
controlParamsstringControl parameters (optional, overrides individual params)No

Response

{
"controlParams": "{...}",
"totem": "1234567890123456789",
"account": "1234567890123456789",
"errorCode": 0,
"errorDescription": ""
}

Example

curl "http://localhost:22024/nxt?requestType=parsePhasingParams&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ&phasingModel=1&phasingQuorum=51&phasingMinBalance=1000"