Burns fungible and non-fungible tokens owned by the Treasury Account. If no Supply Key is defined, the transaction will resolve to TOKEN_HAS_NO_SUPPLY_KEY.Documentation Index
Fetch the complete documentation index at: https://hedera-0c6e0218-mintlify-enhance-hollow-account-docs-97196.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- The operation decreases the Total Supply of the Token.
- Total supply cannot go below zero.
- The amount provided must be in the lowest denomination possible.
- Example: Token A has 2 decimals. In order to burn 100 tokens, one must provide an amount of 10000. In order to burn 100.55 tokens, one must provide an amount of 10055.
- This transaction accepts zero unit token burn operations for fungible tokens (HIP-564)
- Supply key
- Transaction fee payer account key
- Please see the transaction and query fees table for base transaction fee
- Please use the Hedera fee estimator to estimate your transaction fee cost
Methods
| Method | Type | Description | Requirement |
|---|---|---|---|
setTokenId(<tokenId>) | TokenId | The ID of the token to burn supply | Required |
setAmount(<amount>) | long | The number of tokens to burn (fungible tokens) | Optional |
setSerials(<serials>) | List<long> | Applicable to tokens of type NON_FUNGIBLE_UNIQUE.The list of NFT serial IDs to burn. | Optional |
addSerial(<serial>) | long | Applicable to tokens of type NON_FUNGIBLE_UNIQUE.The serial ID to burn. | Optional |