# Minting ERC-721 Token

It is possible to proceed a Minting ERC-721 using Remix.

ERC-721 contracts must be deployed in advance. Please refer to [Write ERC-721 Contract](https://docs.wemix.com/en/tutorial/erc-721-token/write-erc-721-contract) for ERC-721 Contract deployment.&#x20;

{% hint style="danger" %}
Caution

Once deployed contracts cannot be modified or deleted. \
Please write and deploy the necessary information in the code.
{% endhint %}

{% hint style="info" %}
All examples are based on WEMIX3.0 Testnet.
{% endhint %}

### Minting

You can see the contents of the deployed contract in the 'Deployed Contracts' section on the screen where the ERC-721 contact has been deployed.&#x20;

Select 'mintNFT' to enter the recipient, token URL.

<figure><img src="https://content.gitbook.com/content/Hf9f4FuSvei1yoMuW1wT/blobs/USivQ6BgvryLiwApC2jJ/00.mintNFT.png" alt=""><figcaption><p>mintNFT</p></figcaption></figure>

{% hint style="info" %}
**Exmaple of token URL**

<https://2865074520-files.gitbook.io/\\~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlgX3Uok5fQZcz5UtMhgi%2Fuploads%2Fb0lcXNM4MjmcQgY1kn1K%2Fgyeongbok\\_palace.png?alt=media\\&token=4bbc41b2-b7df-40f3-9fbc-e028268034b5>
{% endhint %}

When you select 'transact' after entering recipient and token URL, a MetaMask pop-up appears and a screen showing the default 'Gas Fee' based on Ethereum appears.

WEMIX has a different fee policy than Ethereum, so press the 'Site suggested' button to change the Gas Fee.

<figure><img src="https://content.gitbook.com/content/Hf9f4FuSvei1yoMuW1wT/blobs/4dACIUsv8JTFMg26BmZe/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202023-02-21%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%206.46.31.png" alt=""><figcaption><p>MetaMask, default 'Gas fee'</p></figcaption></figure>

Selecting 'Advanced' on the screen below allows the user to set 'Max priority fee (GWEI)' and 'Max fee (GWEI)' manually.

<figure><img src="https://content.gitbook.com/content/Hf9f4FuSvei1yoMuW1wT/blobs/6zCJsAvw8Ir7OSfg44Bv/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202023-02-21%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%206.46.38.png" alt=""><figcaption><p>MetaMask default 'Gas Fee' setting entry screen</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/Hf9f4FuSvei1yoMuW1wT/blobs/8iyrhesQKoYapPacZxdp/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202023-02-21%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%206.46.41.png" alt=""><figcaption><p>'Gas Fee' setting</p></figcaption></figure>

Currently, WEMIX is using a fixed 'Max priority fee (GWEI)' and the value is 100.&#x20;

Max fee is a user-defined value and the minimum value is MaxPriorityFee+BASE\_FEE.&#x20;

BASE\_FEE in WEMIX is variable according to EIP-1559. Therefore, for a transaction to be successfully created, it is recommended to set it as follows.

1. Max base fee (GWEI) = 101
2. Max priority fee (GWEI) = 100&#x20;

Complete the Fee setup in the figure above and select 'Save' to be ready for Minting as shown below.

<figure><img src="https://content.gitbook.com/content/Hf9f4FuSvei1yoMuW1wT/blobs/3kIrmg40QAVsKYpfSJAR/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202023-02-21%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%206.46.44.png" alt=""><figcaption><p>Confirm Minting ERC-721</p></figcaption></figure>

Select 'Confirm' in the figure above to complete Minting ERC-721 Token.&#x20;

If a green check mark appears at the bottom of the Remix screen as shown below, the Minting ERC-721 Token is completed.

<figure><img src="https://content.gitbook.com/content/Hf9f4FuSvei1yoMuW1wT/blobs/0wQoohfcU33VUIWE4RCJ/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202023-02-21%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%206.47.00.png" alt=""><figcaption><p>Complete Minting ERC-721</p></figcaption></figure>

Copy the transaction hash that appears as a result of the run, and search in [Testnet Explorer](https://explorer.test.wemix.com/), to confirm that the NFT has been issued in [Testnet Explorer](https://explorer.test.wemix.com/).

The figure below is an example of what [Testnet Explorer](https://explorer.test.wemix.com/) has seen.

<figure><img src="https://content.gitbook.com/content/Hf9f4FuSvei1yoMuW1wT/blobs/OCHLH5Gn4Uyvb4KY9YTy/WEMIX3.0%20Testnet%20Explorer%20Tx%E1%84%92%E1%85%AA%E1%86%A8%E1%84%8B%E1%85%B5%E1%86%AB.png" alt=""><figcaption><p>Check TxHash at WEMIX3.0 Testnet Explorer</p></figcaption></figure>

Selecting a deployed NFT name on the 'NFT List' page of the NFTs tab in [Testnet Explorer](https://explorer.test.wemix.com/) will take you to the NFT Details page.&#x20;

Select the 'Inventory' tab on the screen to see the Minted Wallet address and token URL.

<figure><img src="https://content.gitbook.com/content/Hf9f4FuSvei1yoMuW1wT/blobs/xAuRrAy9utFceer0AYXS/WEMIX3.0%20Testnet%20Explorer%20Token%20Inventory.png" alt=""><figcaption><p>WEMIX3.0 Testnet Explorer Token Inventory</p></figcaption></figure>
