Skip to content

gelatodigital/eth-muc-gelato

Repository files navigation

Alchemy Gelato NFT

Summary

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

How to run

  1. Install project dependencies:
yarn install
  1. 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

  1. Test the Stable Diffusion NFT web3 function on Polygon Mumbai:
npx hardhat w3f-run stable-diffusion-nft --logs

Deploy your smart contract and web3 function

yarn run deploy --network mumbai

Verify

npx hardhat verify CONTRACT_ADDRESS DEDICATED_MSG_SENDER --network mumbai
npx hardhat node --network hardhat 
npx hardhat run  scripts/deploy-contract.ts

About

Example of W3F generating an AI image for the NFT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published