Skip to main content

RequestTotemApproval

Requests approval for a totem on a chain.

Endpoint: POST /nxt?requestType=RequestTotemApproval

Parameters:

  • totem (long, required): Totem ID
  • secretPhrase (string, required)
  • feeMTA (long, optional)
  • deadline (int, optional, default: 1440)
  • broadcast (boolean, optional, default: true)

Request Example: /nxt?requestType=RequestTotemApproval&totem=123456789&secretPhrase=mySecret

Response:

{
"type": 2,
"subtype": 4,
"chain": 1,
"phased": false,
"timestamp": 123456789,
"senderPublicKey": "abc123...",
"sender": "111111111",
"feeMTA": "1000000",
"amountMTA": "0",
"signature": "def456...",
"fullHash": "jkl012...",
"transaction": "1234567890",
"attachment": {
"version.TotemApprovalRequest": 1,
"totem": "123456789"
}
}

Response Fields:

  • type: number (2), subtype: number (4) - TOTEM_APPROVAL_REQUEST
  • attachment: TotemApprovalRequestAttachment
  • attachment.totem: string

Tags: AE, CREATE_TRANSACTION Notes: Sender must be totem issuer. Use GetTotemApprovalStatus to check status.