Mint an NFT

What You'll Learn

In this project, you'll take a learn-by-doing approach and accomplish the following utilizing the Infura API and ConsenSys products:

  • Deploy a smart contract using Truffle
  • Upload images and metadata to IPFS
  • Tie it all together and mint an NFT

What You'll Do

  1. Sign up here for a free Infura account and create an Ethereum project. You'll need your project id for the Infura API requests.
  2. Create a MetaMask wallet here if you don't have one.
  3. For this project, you'll need a MetaMask wallet on the Goerli Test Network funded with some testnet ETH, and an Infura account with an Ethereum project and an IPFS project. If you've been following this series of tutorials, you can reuse the Infura projects from the Send Transaction and IPFS projects
  4. Deploy a smart contract using Truffle - a development environment, testing framework, and asset pipeline for blockchains using the Ethereum Virtual Machine. The suite of Truffle tools is quite powerful, and we're going to be using Truffle's built-in smart contract compilation, linking, deployment, and binary management.
    Deploying the smart contract is done in the CLI, follow the steps in the README before getting started.
  5. Once you have your smart contract deployed to the blockchain, you'll go to the Upload page, where you'll select the file for your NFT and give it a name, description, and attributes, then upload it to IPFS.
  6. Paste the IPFS hash from the previous step to mint your NFT.
  7. After the transaction is confirmed and the block is mined, you've successfully minted an NFT! 🎉
GET STARTED
background color haze