Contract Minting Tutorial 📜

nfa.wtf
3 min readNov 14, 2021

--

This article will teach you how to contract mint straight from Etherscan. Although this is not necessary for minting NFTs that have a website, we believe it is a fundamental skill that anyone in this space should master and become acquainted with. For our example, we will be using the Cool Cats NFT Official Contract.

Most projects will have their Official Contract posted in their Discord or Website, but if you cannot find it you could find it through OpenSea as displayed below. As always, make sure you are on the correct collection page or are using only official contract addresses posted by the team!

How to find Contract Address using OpenSea.io 🔎

If you cannot find the official contract through the team’s discord or website, we suggest finding the contract through the official OpenSea collection. As mentioned above, we will be using a Cool Cats NFT for this example.

Navigate to the Official OpenSea Collection and click any of the NFTs in that collection.

Click the details drop down menu.

From there you will see a contract address and if you click on it, it will redirect you to the official Etherscan contract address.

If you already know the contract address, you can skip this step and just search for it on Etherscan.

Now that you have found your way to the contract, we will demonstrate how to mint directly from it.

Step 1: Navigate to the “Contract” tab on Etherscan

Step 2: Connect to Web3 wallet using MetaMask (or other supported wallets)

Step 3: Look for “Mint” function on the contract (in this case, it is called “adopt”)

Step 4: Fill in the associated fields

payableAmount (ether) = amount of ETH that will be sent to contract (must be calculated manually)

num (uint256) = amount of NFTs you will receive

Example: If mint is .02 ETH and you would like to mint 5 NFTs it would go as follow.

payableAmount (ether) = .1

num (uint256) = 5

As seen above, the payable amount you would input would be .1 since .02 x 5 is .1

⚠️ WARNING ⚠️: Please be aware that if you do not input both fields correctly, your transaction will fail.

Step 5: Click Write, and then approve the transaction on MetaMask 🖊️

Once you have inputted all fields, simply click write and your MetaMask popup will open just like any other transaction.

🎉 Congratulations 🎉, you now know how to mint straight from the contract. As we mentioned earlier, this is not necessary but it is certainly a skill that we think everyone should know of.

-nfa.wtf

--

--