4.6 Burn
The Burn operation is defined by the following data structure:
{
"p": "n20",
"op": "burn",
"tick": "note",
"amt": "1000"
... ...
}
Key | Required? | Description |
---|---|---|
p | Yes | Protocol name, n20, lowercase |
op | Yes | Operation name, transfer, lowercase |
tick | Yes | Token name, up to 16 bytes, case-insensitive |
amt | Yes | Bigint, a large integer representing the quantity to be destroyed, must be greater than 0 |
... | No | Other 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.