This boilerplate is specifically designed for developers aiming to create and manage Non-Fungible Tokens (NFTs) on the Polygon (Matic) network. It provides a comprehensive setup for deploying and interacting with NFT smart contracts.
- Ensure you have Node.js and npm installed on your system.
Clone the project from GitHub:
git clone https://github.com/den-by/hardhat-boilerplate-721
Copy .env.tamplate
into .env
file and add your environment variables:
Npm should be used to install project directories:
npm i
To compile the set of smart contracts, run the following command:
npx hardhat compile
To deploy the BatchNFTs contract to Mumbai testnet, run the following command:
npx hardhat run --network mumbai scripts/deploy.js
As configured in
hardhat.config.js
anddeploy.js
.
To mint NFTs, run the following command:
npx hardhat run --network mumbai scripts/mint.js