# [Ride v4] Burn
⚠️ This is the documentation for the Standard library version 4 and 3. We recommend to use version 6. Go to version 6
⚠️ The structure is added in Standard library version 4.
Burn
is a structure that sets the parameters of the token burning. The token burning is performed only if the structure is included in the callable function result.
If the token is a smart asset, the asset script verifies the Burn
action as if it were BurnTransaction with the fee of 0 and the version of 0. If the asset script denies the action, then the transaction that invoked the dApp script is either denied or saved on the blockchain as failed, see the Transaction Validation.
# Constructor
Burn(assetId: ByteVector, quantity: Int)
# Fields
# | Name | Data type | Description |
---|---|---|---|
1 | assetId | ByteVector | ID of the token to burn |
2 | quantity | Int | Amount of the token |