# Edition Mint Button

### Getting Started

Please be sure to have the following snippet in the head or upper portion of your HTML:

```html
<script type="module" src="https://sdk.niftykit.com/widgets/widgets.esm.js"></script>
```

Mint Buttons require users to connect their wallet first.

We can leverage [Is Connected](https://docs.niftykit.com/customize-your-experience/niftykit-diamond-widgets/available-widgets/utilities/is-connected) utility component to hide the Mint Button until the user has connected their wallet.

### Code

{% code lineNumbers="true" %}

```html
<nk-diamond collection-id="Your-SDK-Public-Key">
  <nk-connect-wallet-button>
    Connect Wallet
  </nk-connect-wallet-button>
  <nk-is-connected>
    <nk-edition-mint-button edition-id="Your-Edition-Id" success-title="Success!" success-message="You did it!">
      Mint NFT
    </nk-edition-mint-button>
  </nk-is-connected>
</nk-diamond>
```

{% endcode %}

You can change the copy of the button by changing the content of the `<nk-drop-mint-button>` as well as `success-title` , `success-message` for the confirmation modal at the end.

{% code lineNumbers="true" %}

```html
<nk-diamond collection-id="Your-SDK-Public-Key">
  <nk-connect-wallet-button>
    Connect To Metaverse
  </nk-connect-wallet-button>
  <nk-is-connected>
    <nk-edition-mint-button edition-id="Your-Edition-Id" success-title="Success!" success-message="One of US!">
      All Systems Go
    </nk-edition-mint-button>
  </nk-is-connected>
</nk-diamond>
```

{% endcode %}

### Codepen

{% embed url="<https://codepen.io/jcurbelo/pen/rNoraGj>" %}


---

# 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://docs.niftykit.com/customize-your-experience/niftykit-diamond-widgets/available-widgets/editions/edition-mint-button.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.
