Skip to main content

4.6 Burn

The Burn operation is defined by the following data structure:

{
"p": "n20",
"op": "burn",
"tick": "note",
"amt": "1000"
... ...
}
KeyRequired?Description
pYesProtocol name, n20, lowercase
opYesOperation name, transfer, lowercase
tickYesToken name, up to 16 bytes, case-insensitive
amtYesBigint, a large integer representing the quantity to be destroyed, must be greater than 0
...NoOther variables needed during the transfer operation

If a smart contract was set during the deployment stage, the Burn operation must pass contract validation. If the account has more tokens than the amount to be burned, the excess tokens will be assigned to the first transaction output's token address. Otherwise, it is not necessary to specify a token address.