Use VRF to get a π² random "βοΈ strength" for each NFT as it is minted...
required: Node plus Yarn and Git
git clone https://github.com/Polygon-Academy/nftmarketexample
cd nftmarketexampleyarn install
yarn start
in a second terminal window:
cd nftmarketexample
yarn chain
βοΈ Edit the artwork manifest
artwork.jswith all of your art, then upload it to IPFS:
in a third terminal window:
cd nftmarketexample
yarn upload
yarn deploy
π± Open http://localhost:3000 to see the app
Your artwork from artwork.json (if uploaded and deployed correctly) should show a gallery of possible NFTS to mint:
π¦ Use the faucet wallet icon in the bottom left of the frontend to give your address $1000 in testnet ETH.
π² This repo uses Chainlink's VRF on Rinkby.
First call
getRandomNumber()from thedebug contractstab:
Wait for the
randomResultto get set:
Finally, mint from the
gallerytab and your NFT will have atokenStrength:




