In this article, you will learn how to mint NFT from smart contracts. Minting an NFT is the action of creating your unique token on the blockchain. Normally, NFTs are minted on the project's websites with whitelisted addresses. When you minting your NFT from the project's website, you're interacting with the underlying smart contract. There is a way to directly mint NFT from smart contracts.
How to Mint NFT from Smart Contracts
For some, minting NFTs through smart contracts is a norm but, to many — it's something they have never done before. Minting directly through smart contracts can be risky and should be done correctly and confidently.
Minting on smart contracts usually takes place when a project has no website, Twitter, discord, or any advertising one on it as we have seen with dotdotdots and Vogu NFTs.
Steps to Mint NFT from Smart Contracts
Step 1: Find the Smart Contract on Etherscan
Find the contract address. Eg, 0xBCxxxxxxxxxxxxxxxxxxxxxxxxxxf13D.
If a project has been minted the contract can be found through OpenSea by clicking on any NFT that has been minted and opening the “Details” section. Click on the contract address to take you to Etherscan.
If you only have the contract address and not the link to Etherescan, go to Etherscan(.)io and search by the contract address.
2. Write Contract and Connect to Web 3
On the Contract page, push the Contract button near the bottom bringing up Code, Read Contract, and Write Contract. Here, select the Write Contract option. Write Contract will bring up several options that execute a function defined on the smart contract.
With the Write Contract button selected, click the Connect To Web 3 button and connect the wallet. Make sure to connect the wallet you want to hold this NFT so you don't have to pay gas transferring it later.
3. Mint your NFT from the Smart Contract
The final step of the process is to mint your new NFT. Once your wallet is connected you will need to expand the minting category. However, every smart contract is different.
Here's the most important part: triple check your inputs to ensure they matchup with the project price and your number of tokens. The blockchain is trustless, so it relies on you to ensure everything is correct. Click on the Write button and sign the transaction on your wallet to complete the transaction.
In the case of Loot , users would go to 2. Claim function, then type in tokenIds. If the ID has already been claimed, the user would get a very high gas estimate (multiple ETH), which means it can not be executed.
You can visit Flash Mint to quickly find which NFT IDs have not been claimed yet in future free-to-claim situations to find one you can mint. For example, there are still many More Loots that have not yet been claimed.
Bottom Line
There are many benefits to knowing how to mint from a smart contract, and that's why many sharp NFT collectors use this method to stack NFTs of a hyped release. With the steps described above, you will know how to mint NFT from smart contracts.





















