# Map URI to first burn token ID

Map URI functionality is designed just for the use case of contract migration. Migration works by setting the old contract as a burn contract, creating a new one, and letting existing holders burn the current collection and mint a new one. The benefit of doing so is by migrating the contract, you can add new features (the biggest one is on-chain royalty enforcement - as most of the old collections don't have on-chain royalty enforcement to their existing contract, which makes them lose royalties on trade) to your contract and you are basically moving your users to a new contract.

If enabled, newly minted tokens will display the exact same name, image, and other metadata as the token burned. Please note that the true token id of the newly minted token will not be the same as the old one, but the metadata will remain the same.

### Step-by-step guide:

1. Enable Map URI to first burn token ID

<figure><img src="/files/o84KiUF62ytc1zGU4dB9" alt=""><figcaption><p>Enable Map URI to first burn token ID</p></figcaption></figure>

2. Click on Add token

<figure><img src="/files/MYSCkmlz0KnsMsuA7QWb" alt=""><figcaption><p>Click on Add token</p></figcaption></figure>

3. Paste Burn to mint contract address

<figure><img src="/files/UMfOuiZqV0zz3366raUG" alt=""><figcaption><p>Paste Burn to mint contract address</p></figcaption></figure>

4. Double-check all details

<figure><img src="/files/ssdYCSxhNjzwxtp5gp0w" alt=""><figcaption><p>Double-check all details</p></figcaption></figure>

5. Click on Save

<figure><img src="/files/y9hWeTLuSHDAUp2816v0" alt=""><figcaption><p>Click on Save</p></figcaption></figure>

6. Copy the token base URI of your old contract.
7. Click on Art & Metadata and select the following options:

<figure><img src="/files/yT9PZnk4L0zyf79KtcLp" alt=""><figcaption><p>Click on Art &#x26; Metadata and select the following options:</p></figcaption></figure>

6. Paste the token URI of your old contract address.

<figure><img src="/files/NSf2Ruz0OnBYCBUF2szD" alt=""><figcaption><p>Paste the token URI of your old contract address.</p></figcaption></figure>

{% hint style="danger" %}
Be sure to enter the IPFS link that points to the folder that has metadata files, .json files, NOT image files. To learn more about how to create and set metadata correctly, check out the article explaining [how to set your own metadata](https://heymint.xyz/blog/how-to-create-nft-metadata) in Launchpad.
{% endhint %}

7. Click on Validate & save

<figure><img src="/files/T1vUI6nwFoBTrmlGkmr1" alt=""><figcaption><p>Click on Validate &#x26; save</p></figcaption></figure>

8. Now you can proceed to deploy your new contract! After deployment, please check out how to [Enable Burn to Mint](/creators/manage-smart-contract/after-deployment/enable-burn-to-mint.md).


---

# 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.launchpad.heymint.xyz/creators/manage-smart-contract/before-deployment/advanced-features/burn-to-mint-feature/map-uri-to-first-burn-token-id.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.
