BasicNFT: 0x3aFb55E5906cE73b42A7AF19F56b1dca65f80D94
NftMarketplace: 0x17534e4c87e38bf27398C683a6584AefF85A1C32
git clone https://github.com/raymondfam/hardhat-nft-marketplace
cd hardhat-nft-marketplace
yarn
Deploy:
yarn hardhat deploy
yarn hardhat test
- Setup environment variabltes
You'll want to set your MUMBAI_RPC_URL
and PRIVATE_KEY
as environment variables. You can add them to a .env
file.
-
PRIVATE_KEY
: The private key of your account (like from metamask).- You can learn how to export it here.
-
MUMBAI_RPC_URL
: This is url of the mumbai testnet node you're working with. You can get setup with one for free from Alchemy
- Get MATIC
Head over to a Mumbai Faucet and get some MATIC.
- Deploy
yarn hardhat deploy --network mumbai