Creation of a template for setting up an dynamic NFT collection.
- Install all modules and their dependencies.
npm install
-
Create the "contracts" folder into the root folder and write your contract into it.
-
Create a new ".env" file into the root folder of the project.
ALCHEMY_KEY = "alchemy-api-key"
ACCOUNT_PRIVATE_KEY = "wallet-private-key"
NETWORK = "blockchain-network"
CONTRACT_NAME = "your-contract-name"
- Compile your contract.
npx hardhat compile
- Deploy your contract.
npx hardhat deploy
- Add the contract address into the ".env" file.
CONTRACT_ADDRESS = "contract-address"
- Mint from your contract.
npx hardhat mint
- Update metadatas.
Go to your contract on etherscan (https://rinkeby.etherscan.io/address/CONTRACT_ADDRESS#writeContract) and run the function setTokenURI.