/dynamic-nft

Creation of Dynamic NFTs

Primary LanguageJavaScript

NFT-collection-template

Creation of a template for setting up an dynamic NFT collection.

Getting Started

  1. Install all modules and their dependencies.
npm install
  1. Create the "contracts" folder into the root folder and write your contract into it.

  2. 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"
  1. Compile your contract.
npx hardhat compile
  1. Deploy your contract.
npx hardhat deploy
  1. Add the contract address into the ".env" file.
CONTRACT_ADDRESS = "contract-address"
  1. Mint from your contract.
npx hardhat mint
  1. Update metadatas.

Go to your contract on etherscan (https://rinkeby.etherscan.io/address/CONTRACT_ADDRESS#writeContract) and run the function setTokenURI.