- NftMarketplace - 0x8e493663B678fd5eea3b36A2D99e8fAEB78FFac9
- BasicNft - 0x67A1262E721BcbF2faaee0Be3553300176cd19B5
git clone https://github.com/Nedick/hardhat-nft-marketplace.git
cd hardhat-nft-marketplace
yarn
Deploy:
yarn hardhat deploy
yarn hardhat test
- Setup environment variabltes
You'll want to set your RINKEBY_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). NOTE: FOR DEVELOPMENT, PLEASE USE A KEY THAT DOESN'T HAVE ANY REAL FUNDS ASSOCIATED WITH IT.- You can learn how to export it here.
RINKEBY_RPC_URL: This is url of the rinkeby testnet node you're working with. You can get setup with one for free from Alchemy
- Get testnet ETH
Head over to faucets.chain.link and get some tesnet ETH. You should see the ETH show up in your metamask.
- Deploy
yarn hardhat deploy --network rinkeby