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_MUMBAI_URL, ALCHEMY_RINKEBY_URL, ALCHEMY_ROPSTEN_URL and PRIVATE_KEY.
  4. Compile contract: npm run compile
  5. Deploy contract: npm run deploy:<network> Where network can be mumbai (Polygon testnet), rinkeby or ropsten. e.g. npm run deploy:rinkeby
  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 ropsten 1

About

Experimental NFT collection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published