# Asset Burn Multi

It is similar to the [Asset Burn Guard](https://developers.metaplex.com/core-candy-machine/guards/asset-burn) but can accept more than one asset to burn.

Burn n Asset(s)

from this collection

Candy Machine

Owner: Candy Machine Core Program

Candy Guard

Owner: Candy Guard Program

GuardsnftBurnMulti- Required Collection- Number...

Collection

Owner: Core Program

Mint from

*Candy Guard Program*

Access Control

Mint from

*Candy Machine Program*

Mint Logic

Asset

[React Flow](https://reactflow.dev/)

### Guard Settings <a href="#guard-settings" id="guard-settings"></a>

The Asset Burn guard contains the following settings:

* **Required Collection**: The Address of the required Collection. The Asset we use to mint with must be part of this collection.
* **Number**: The Amount of Assets that have to be burned in exchange for the new Asset.

Set up a Candy Machine using the Asset Burn Multi guard

JavaScript

```
create(umi, {
  // ...
  guards: {
    assetBurnMulti: some({
      requiredCollection: requiredCollection.publicKey,
      num: 2,
    }),
  },
});
```

API References: [create](https://mpl-core-candy-machine.typedoc.metaplex.com/functions/create.html), [AssetBurnMulti](https://mpl-core-candy-machine.typedoc.metaplex.com/types/AssetBurnMulti.html)

### Mint Settings <a href="#mint-settings" id="mint-settings"></a>

The Asset Burn Multi guard contains the following Mint Settings:

* **Required Collection**: The mint address of the required Collection.
* **\[Address]**: An Array of Addresses of the Asset(s) to burn. These must be part of the required collection and must belong to the minter.

Note that, if you’re planning on constructing instructions without the help of our SDKs, you will need to provide these Mint Settings and more as a combination of instruction arguments and remaining accounts. See the [Candy Guard’s program documentation](https://github.com/metaplex-foundation/mpl-core-candy-machine/tree/main/programs/candy-guard#asseturn) for more details.

Mint with the Asset Burn Multi Guard

JavaScript

You may pass the Mint Settings of the Asset Burn Multi guard using the `mintArgs` argument like so.

```

mintV1(umi, {
  // ...
  mintArgs: {
    assetBurnMulti: some({
      requiredCollection: requiredCollection.publicKey,
      assets: [assetToBurn1.publicKey, assetToBurn2.publicKey],
    }),
  },
});
```

API References: [mintV1](https://mpl-core-candy-machine.typedoc.metaplex.com/functions/mintV1.html), [AssetBurnMultiMintArgs](https://mpl-core-candy-machine.typedoc.metaplex.com/types/AssetBurnMultiMintArgs.html)

### Route Instruction <a href="#route-instruction" id="route-instruction"></a>

*The Asset Burn Multi guard does not support the route instruction.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://8bit-1.gitbook.io/solibrary/asset-burn-multi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
