This project is part of the NFT Marketplace and demonstrates a basic Hardhat setup for deploying a Solidity contract. The contract follows the ERC-721 standard and includes minting and managing NFTs on the Ethereum blockchain.
Links to related repositories:
- Download Geth: Get the latest version from the official Geth website.
- Run Geth Node: Start the node by navigating to the Geth installation folder in the Command Prompt and running:
geth --http --http.addr "127.0.0.1" --http.port "8545" --http.api "web3,eth"
-
Create Project Directory:
- Create a folder called
monsters-collection
for the Solidity contract.
- Create a folder called
-
Install Dependencies:
- Install npm packages and Hardhat:
npm install --save-dev hardhat
- Install npm packages and Hardhat:
-
Initialize Hardhat:
- Set up a new Hardhat project:
npx hardhat
- Set up a new Hardhat project:
-
Configure Alchemy & MetaMask:
- Set up an Alchemy app and add the Polygon network to MetaMask.
-
Write Solidity Contract:
- Implement functions like
mint
,transfer
, andsupportsInterface
as per ERC-721 standards.
- Implement functions like
-
Deploy Contract:
- Use the following scripts to deploy the contract:
npx hardhat run scripts/deploy.js
- Use the following scripts to deploy the contract:
You can run the following Hardhat tasks to interact with your contract:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js