February 3, 2023

How to mint an NFT from Contract?

Why do we need a mint through a contract?

  1. Some kind of projects only run like this
  2. This is much faster than mint from website + very often websites down

But not all projects have a mint through a contract

First of all, we need an etherscan of the project, usually projects post it in advance so that everyone can wxplore the contract. If it is not there, then perhaps the project is hiding something and it is worth thinking about, but it happens that they simply forget or do not consider it necessary to do this, without malicious intent.

On the etherscan project page, go to the "Contract" tab

Press the "Write Contract", then "Connect to WEB3" and connect our metamask.

Now we are looking for the tab to which we belong, if you have a whitelist then "mintWL", if not and we mint into a public sale then just "mint".
Each project has its own names, by type - mint, publicmint, or even some kind of comic name.

Now we open our tab and we usually see 2 fields:

Let's say 1 NFT costs 0.1, but the wallet limit is 3 and we want to buy 3.

In "mint" we write the total amount of ETH (0.1x3=0.3), and in "mintAmount" the amount is 3 NFTs and press "Write".

Now we have a metamask window pops up, where we need to confirm the transaction.

If we are preparing for a mint in advance and we really need to take NFT, then we do the same, in our metamask window above the line with the commission, click "Edit", then "Advanced options" and set the space gas and priority fee.

In this example, we set the Priority fee to 3-5, and the Max fee to x3-x5 from the current ones that we see on https://etherscan.io/gastracker and click save. If the project is in high demand, then these 2 lines can be safely multiplied by x20-x50.

Gas limit do not touch!


We are waiting for the contract to be opened and the mint to start and confirm the transaction.

Grats! U can now mint your NFTs from etherscan contract.