Skip to main content

DeleteCurrency

Deletes a currency from the Monetary System. Only currencies with specific properties can be deleted.

Request

POST /nxt?requestType=deleteCurrency

Parameters

NameTypeDescriptionRequired
secretPhrasestringCurrency issuer's secret passphraseYes
currencylongCurrency ID to deleteYes

Deletion Constraints

  • The currency must be deletable by the issuer account
  • Only certain currency types support deletion
  • Deleted currencies may still have historical transfer records

Response

{
"transaction": "1234567890123456789",
"fullHash": "abc123...",
"errorCode": 0,
"errorDescription": ""
}

Error Handling

ErrorCondition
CANNOT_DELETE_CURRENCYCurrency cannot be deleted by this account
UNKNOWN_CURRENCYSpecified currency does not exist

Example

curl -X POST http://localhost:22024/nxt \
-d "requestType=deleteCurrency" \
-d "secretPhrase=your_phrase" \
-d "currency=987654321"