This project demonstrates a simple Hardhat use case to write an NFT Collectible smart contract
Follow the next steps to setup the repository:
- Install
node.js & npm
and Runnpm install
- Create an enviroment file named
.env
and fill the next enviroment variables
# A wallet private key to be used to deploy on the testnets
PRIVATE_KEY=
# Add alchemy provider keys, alchemy takes preference at the config level
ALCHEMY_KEY=
# Optional Etherscan key, for automatize the verification of the contracts at Etherscan
ETHERSCAN_API_KEY=
# Base Token URI, the IPFS URL of the folder containing the JSON metadata
BASE_TOKEN_URI=
npx hardhat compile
npx hardhat test
npx hardhat run scripts/deploy.js --network ropsten
npx hardhat verify --network ropsten DEPLOYED_CONTRACT_ADDRESS "BASE_TOKEN_URI"