tx.txbuilder.burnassets
Home > @blaze-cardano/tx > TxBuilder > burnAssets
TxBuilder.burnAssets() method
Burns assets by accepting positive quantities at the call site and converting them into negative mint entries.
Signature:
burnAssets(policy: PolicyId, assets: Map<AssetName, bigint>, redeemer?: PlutusData): TxBuilder;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
policy |
PolicyId |
The policy id whose assets are burned. |
|
assets |
Map<AssetName, bigint> |
Asset names and positive quantities to burn. |
|
redeemer |
PlutusData |
(Optional) Optional redeemer for Plutus minting policies. |
Returns:
The same transaction builder.