Skip to main content

API Reference: deleteTotemShares

Permanently destroys (burns) a specified quantity of Totem units held by the sender account, reducing circulating supply in TotemHistory.


Endpoint Details

  • HTTP Method: POST
  • Gateway Path: /nxt
  • Content-Type: application/x-www-form-urlencoded
  • API Tags: AE, CREATE_TRANSACTION
  • Chain Specific: Yes

Request Parameters

ParameterTypeRequiredDescription
requestTypeStringYesMust be set to deleteTotemShares.
totemlongYesUnique 64-bit Totem identifier.
quantityQNTlongYesNumber of base Quantum units (QNT) to destroy.
chainintYesSovereign BetaChain ID where the Totem exists.
secretPhraseStringYesPassphrase of the account holding the Totems.
feeNQTlongConditionalTransaction execution fee in base units (NQT).
deadlineshortConditionalTransaction expiration window in minutes (1-1440).

Example Request

curl -X POST http://localhost:22024/nxt \
-d "requestType=deleteTotemShares" \
-d "chain=2" \
-d "totem=9876543210123456789" \
-d "quantityQNT=500000" \
-d "secretPhrase=your_pqc_passphrase" \
-d "feeNQT=10000000"

Successful Response

{
"signatureHash": "c7d8e9f0...",
"unsignedTransactionBytes": "0100...",
"transactionJSON": {
"sender": "1234567890123456789",
"feeNQT": "10000000",
"type": 2,
"subtype": 5,
"attachment": {
"version.TotemSharesDeletion": 1,
"totem": "9876543210123456789",
"quantityQNT": "500000"
},
"timestamp": 89234200
},
"broadcasted": true,
"transaction": "76123049120394812"
}

Error Codes

Error CodeCause / Description
NOT_ENOUGH_TOTEMSSender account holds fewer unconfirmed Totem units than requested for deletion.
UNKNOWN_TOTEMTotem ID does not exist on the target BetaChain.