Class TokenBurnTransaction


public class TokenBurnTransaction extends Transaction<TokenBurnTransaction>
Burns tokens from the Token's treasury Account. The token MUST have a `supply_key` set and that key MUST NOT be an empty `KeyList`.
The token `supply_key` MUST sign this transaction.
This operation SHALL decrease the total supply for the token type by the number of tokens "burned".
The total supply for the token type MUST NOT be reduced below zero (`0`) by this transaction.
The tokens to burn SHALL be deducted from the token treasury account.
If the token is a fungible/common type, the amount MUST be specified.
If the token is a non-fungible/unique type, the specific serial numbers MUST be specified.
The global batch size limit (`tokens.nfts.maxBatchSizeBurn`) SHALL set the maximum number of individual NFT serial numbers permitted in a single `tokenBurn` transaction. ### Block Stream Effects None
  • Constructor Details

    • TokenBurnTransaction

      public TokenBurnTransaction()
      Constructor.
    • TokenBurnTransaction

      TokenBurnTransaction(LinkedHashMap<TransactionId,LinkedHashMap<AccountId,Transaction>> txs) throws com.google.protobuf.InvalidProtocolBufferException
      Constructor.
      Parameters:
      txs - Compound list of transaction id's list of (AccountId, Transaction) records
      Throws:
      com.google.protobuf.InvalidProtocolBufferException - when there is an issue with the protobuf
    • TokenBurnTransaction

      TokenBurnTransaction(TransactionBody txBody)
      Constructor.
      Parameters:
      txBody - protobuf TransactionBody
  • Method Details