Build your custom NFT mint collection

Aharna HaqueAharna Haque
2 min read

Hi web3 chat! Before anything, let’s first see and use what we’re going to build

I present you → NFT mint collection dApp
connect Metamask wallet and start minting!

✅ Some Pre-requisites:

  • Make sure you have Metamask wallet installed.
    (Download and install it from https://metamask.io)

  • Add Polygon Amoy Testnet if you haven’t already.
    [p.s.- this dApp was done on Polygon Mumbai Testnet, which is currently discontinued since April 2024. Migrate to Amoy to continue using Testnet from polygon and deploy this dApp)

  • Claim free Amoy tokens from Alchemy’s public Faucet which drips upto 1 Amoy MATIC per day. More info here, for steps-by-step process to migrate to Amoy faucet successfully

  • Ensure that your pc has npm, node modules hardhat node modules installed.
    More info on how to set everything up → Docs

Installation

To install and run the NFT Minting DApp locally, follow these steps:

  1. Clone the repository:

     git clone https://github.com/aharna/zeeve-workshop-demo-start
    
  2. Set up RPC API endpoints from Zeeve/RPC endpoints provider. (Zeeve Link + Documentation)

  3. Create .env file and enter http url and the private key.

ZEEVE_HTTP_URL= enter your http url here
PRIVATE_KEY= enter your private key from your wallet
  1. Run the following commands in the Terminal:
npm i
cd my-nft-dapp
npm i
cd ..
npx hardhat run scripts/deploy.js --network polygon_amoy
  1. Add ABI and deployed smart contract address (What’s ABI 🤔 Check glossary)

  2. Run the following commands:

cd my-nft-dapp
npm run dev

Glossary:

ABI (Application Binary Interface) is a standard used in Ethereum and other blockchain networks to define how smart contracts interact with external applications. It specifies the methods and data structures that can be called on a smart contract, acting as a bridge between the contract's internal functions and external software like wallets or DApps.

NFT (Non-Fungible Token) is a type of digital asset stored on a blockchain, representing ownership of unique items such as art, music, collectibles, or virtual assets. Unlike cryptocurrencies, NFTs are not interchangeable due to their uniqueness, making them ideal for creating verifiable, one-of-a-kind items in the digital world.

0
Subscribe to my newsletter

Read articles from Aharna Haque directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Aharna Haque
Aharna Haque

Hi! CSE undergrad. Tech & communities also writes sometimes... Partnership & Alliances Zeeve.io prev: contributor @shardeum