Experimental NFT collection.
Currently supports Ethereum and Polygon testnets.
Loosely based on the Ethereum tutorial How to write & deploy an NFT, with additional inspiration from https://github.com/schonken/blockchain-week-2022-nft-101.
- Upload images to Pinata (or use your own).
- Edit the metadata json files and change the
image
urls to the address created in step 1. - Create a
.env
file in the root of the project with entries forALCHEMY_MUMBAI_URL
,ALCHEMY_RINKEBY_URL
,ALCHEMY_ROPSTEN_URL
andPRIVATE_KEY
. - Compile contract:
npm run compile
- Deploy contract:
npm run deploy:<network>
Where network can be mumbai (Polygon testnet), rinkeby or ropsten. e.g.npm run deploy:rinkeby
- Update the <network_CONTRACT> constant in mint.js with the contract address from step 5.
- Mint an NFT
node scripts/mint <network> <nft-number>
e.g.node scripts/mint ropsten 1