# Sol Fixed Fee Guard

It works similar to the [Sol Payment](https://developers.metaplex.com/core-candy-machine/guards/sol-payment) Guard.

Transfers SOL

from the payer

Core Candy Machine

Owner: Core Candy Machine Core Program

Core Candy Guard

Owner: Core Candy Guard Program

GuardsSol Fixed Fee- Amount- Destination...

Destination Wallet

Owner: System 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 Sol Payment guard contains the following settings:

* **Lamports**: The amount in SOL (or lamports) to charge the payer.
* **Destination**: The address of the wallet that should receive all payments related to this guard.

Set up a Candy Machine using the Sol Payment guard

JavaScript

Note that, in this example, we’re using the current identity as the destination wallet.

```
create(umi, {
  // ...
  guards: {
    solFixedFee: some({
      lamports: sol(1.5),
      destination: umi.identity.publicKey,
    }),
  },
});
```

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

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

The Sol Fixed Fee guard contains the following Mint Settings:

* **Destination**: The address of the wallet that should receive all payments related to this guard.

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 [Core Candy Guard’s program documentation](https://github.com/metaplex-foundation/mpl-core-candy-machine/tree/main/programs/candy-guard#solfixedfee) for more details.

Mint with the Sol Fixed Fee Guard

JavaScript

You may pass the Mint Settings of the Sol Fixed Fee guard using the `mintArgs` argument like so.

```
mintV1(umi, {
  // ...
  mintArgs: {
    solFixedFee: some({ destination: treasury }),
  },
});
```

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

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

*The Sol Fixed Fee 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/sol-fixed-fee-guard.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.
