# Address Gate Guard

if the payer does not match the address on the guard

Minting will fail

Candy Machine

Owner: Candy Machine Core Program

Candy Guard

Owner: Candy Guard Program

GuardsAddressGate- Address...Payer

Owner: Any 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 Address Gate guard contains the following settings:

* **Address**: The only address that is allowed to mint from the Core Candy Machine.

Set up a Core Candy Machine using the Address Gate guard

JavaScript

```
create(umi, {
  // ...
  guards: {
    addressGate: some({ address: someWallet.publicKey }),
  },
});
```

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

Now, only the defined public key will be able to mint from this Core Candy Machine.

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

*The Address Gate guard does not need Mint Settings.*

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

*The Address Gate guard does not support or require 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/address-gate-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.
