🖼️

[NFTs] How to Mint NFTs from the contract directly

Sometimes, the frontend website of the NFTs could be buggy, or could even be compromised. Minting directly from the contract is how many of the speculators front run the minting.
 
1) Find the Contract Address
This is the hardest part. Usually you will need some inside information or pre-mints or sometimes inside the discord. (If you have icy tools, there is a way they track all verified contracts on ethereum mainnet.)
 
For example this NFT has been pre-minted or pre-sales.
notion image
 
Go down on the bottom left Details —> Contract Address, and click on it.
 
notion image
2) That should bring you to the etherscan to read the contract.
Click on Contract. It should be rather human readable.
Some of the parameters released in discord should also be here. Like maximum number of tokens, maximum mints per time, and the price as well.
 
notion image
Line 66 to 69
// Limit buys to 50 Ethermore
        if (quantity > 50) {
            quantity = 50;
        }
You can only mint 50 max each time.
 
Line 131 to 137
for (uint256 i = 0; i < quantity; i++) {
            if (totalSupply >= 2000) {
                totalPrice += 0.04 ether;
            } else {
                totalPrice += 0.01 ether;
            }
            totalSupply++;
This tells you that the first 2000 is 0.01 ETH, otherwise it is 0.04 ETH.
 
3) Connect your wallet
Click on Write Contract —> Connect to Web3 to connect your metamask wallet.
notion image
4) Decide how many you want and calculate the price
So for example you want 2, and you are minting after the first 2000.
You will need 2 x 0.04 ETH = 0.08 ETH
 
5) Look for the function that is mint or something that sounds like create your mint, sometimes, the developers might obfuscate this function to prevent contract minters.
 
In that case you might have to read more of the contract to find out which function actually does the mint.
 
6) Key in and execute
notion image
 
In this example, you will write in payable amount the total amount needed.
And the quantity to be 0000000000000000000000000000000000000000000000000000000000000002.
You need to zero pad this, meaning add zeros in front until you get 64 characters, because this contract requires that you put in a uint256 variable. (For more info, join our solidity workshops).
You can also use the + symbol above the text input to add the zeros.
And press Write once you are ready.
7) Errors?
If you notice, in this example, you encounter very insane levels of gas fees, likelihood is that the mint contract is not live yet, or you are violating some contract rules or it has sold out in this case for example.
 
This guide was prepared by angyts angyts and has not been verified for errors.
🖼️

[NFTs] How to Mint NFTs from the contract directly

Sometimes, the frontend website of the NFTs could be buggy, or could even be compromised. Minting directly from the contract is how many of the speculators front run the minting.
 
1) Find the Contract Address
This is the hardest part. Usually you will need some inside information or pre-mints or sometimes inside the discord. (If you have icy tools, there is a way they track all verified contracts on ethereum mainnet.)
 
For example this NFT has been pre-minted or pre-sales.
notion image
 
Go down on the bottom left Details —> Contract Address, and click on it.
 
notion image
2) That should bring you to the etherscan to read the contract.
Click on Contract. It should be rather human readable.
Some of the parameters released in discord should also be here. Like maximum number of tokens, maximum mints per time, and the price as well.
 
notion image
Line 66 to 69
// Limit buys to 50 Ethermore
        if (quantity > 50) {
            quantity = 50;
        }
You can only mint 50 max each time.
 
Line 131 to 137
for (uint256 i = 0; i < quantity; i++) {
            if (totalSupply >= 2000) {
                totalPrice += 0.04 ether;
            } else {
                totalPrice += 0.01 ether;
            }
            totalSupply++;
This tells you that the first 2000 is 0.01 ETH, otherwise it is 0.04 ETH.
 
3) Connect your wallet
Click on Write Contract —> Connect to Web3 to connect your metamask wallet.
notion image
4) Decide how many you want and calculate the price
So for example you want 2, and you are minting after the first 2000.
You will need 2 x 0.04 ETH = 0.08 ETH
 
5) Look for the function that is mint or something that sounds like create your mint, sometimes, the developers might obfuscate this function to prevent contract minters.
 
In that case you might have to read more of the contract to find out which function actually does the mint.
 
6) Key in and execute
notion image
 
In this example, you will write in payable amount the total amount needed.
And the quantity to be 0000000000000000000000000000000000000000000000000000000000000002.
You need to zero pad this, meaning add zeros in front until you get 64 characters, because this contract requires that you put in a uint256 variable. (For more info, join our solidity workshops).
You can also use the + symbol above the text input to add the zeros.
And press Write once you are ready.
7) Errors?
If you notice, in this example, you encounter very insane levels of gas fees, likelihood is that the mint contract is not live yet, or you are violating some contract rules or it has sold out in this case for example.
 
This guide was prepared by angyts angyts and has not been verified for errors.