install Node run:
nvm install 18
nvm list
nvm use 18
install hardhat run:
npm install --save-dev hardhat@2.12.2
create hardhat project:
npx hardhat
npx hardhat test
install dependency contract:
npm install @openzeppelin/contracts@4.9.6
for using enviroment variable:
npm install dotenv --save
run:
proxychains4 npx hardhat run scripts/deploy.js --network sepolia
contract deployed address is: 0xB9CB6c574FC159AD8343C32Da5302981f9F77725
Creating the Mint NFT Script mint-nft.js
run:
node scripts/mint-nft.js
we get something in shell:
NFT Minted! Check it out at: https://sepolia.etherscan.io/tx/0xd7e4a5b22432efa70c2417aad0603389bb2995ecaaa21bfe31731bfdc47c3ee8
This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.
Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js