Skip to content

samwarwick/castle-nft

Repository files navigation

castle-nft

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.

Stack

Instructions

  1. Upload images to Pinata (or use your own).
  2. Edit the metadata json files and change the image urls to the address created in step 1.
  3. Create a .env file in the root of the project with entries for ALCHEMY_AMOY_URL, ALCHEMY_SEPOLIA_URL and PRIVATE_KEY.
  4. Compile CastleNFT contract: npm run compile
  5. Deploy contract: npm run deploy:<network> Where network can be sepolia (Etherium testnet) or amoy (Polygon testnet). e.g. npm run deploy:sepolia
  6. Update the <network>_CONTRACT constant in mint.js with the contract address from step 5.
  7. Mint an NFT node scripts/mint <network> <nft-number> e.g. node scripts/mint sepolia 1

About

Experimental NFT collection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published