NFT powered by Open AI & Web3 functions:
- Each user can mint 1 NFT
- A Web3 function is listening to every new mint and generate a new art using Stable Diffusion
- The NFT pic is published on IPFS and revealed on-chain via Gelato Web3 Fucntion
- Install project dependencies:
yarn install
- Create a
.env
file with your private config:
cp .env.example .env
You will need to create free accounts and get Api Keys from OpenAI and Nft.Storage
- Test the Stable Diffusion NFT web3 function on Polygon Mumbai:
npx hardhat w3f-run stable-diffusion-nft --logs
yarn run deploy --network mumbai
npx hardhat verify CONTRACT_ADDRESS DEDICATED_MSG_SENDER --network mumbai
npx hardhat node --network hardhat
npx hardhat run scripts/deploy-contract.ts