How to mint a ERC721 token (NFT) for Udacity’s capstone?
1 min readJan 11, 2022
Udacity Nanodegree
Test that you can mint locally
You can do this by using the tests in truffle. In the tests you can verify if the mint function is working as expected.
Mint a token for a testnet
You have these options
- Use this javascript code https://github.com/andresaaap/mint-ntf or this https://docs.alchemy.com/alchemy/tutorials/how-to-create-an-nft/how-to-mint-an-nft-with-ethers
- Use Rinkeby etherscan to interact with the contract https://rinkeby.etherscan.io
- (Recommended) Use MyEtherWallet to interact with the contract https://vintage.myetherwallet.com/#contracts
- Use the remix IDE that offer an easy way to interact with contracts. You need to deploy your contract using the remix IDE. Then, it will give you an UI to interact with the contract.
This is a tutorial in YouTube https://youtu.be/8MChn-NJJB0 you can see how to use MyEtherWallet to mint a new token. Before you can do this you need to deploy the contract to the testnet