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
imageurls to the address created in step 1. - Create a
.envfile in the root of the project with entries forALCHEMY_AMOY_URL,ALCHEMY_SEPOLIA_URLandPRIVATE_KEY. - Compile CastleNFT contract:
npm run compile - Deploy contract:
npm run deploy:<network>Where network can be sepolia (Etherium testnet) or amoy (Polygon testnet). e.g.npm run deploy:sepolia - Update the
<network>_CONTRACTconstant in mint.js with the contract address from step 5. - Mint an NFT
node scripts/mint <network> <nft-number>e.g.node scripts/mint sepolia 1