First, you neet to create typescriptFile

//1
npx create-next-app@latest -- typescript
//2
npm install --save-dev hardhat
//3
npx hardhat
//4  and then test for was it complete
 npx hardhat test
 //5
npx hardhat compile

 

If you have an error

pls npm i @nomicfoundation/hardhat-toolbox

this is main ContractFile

last i want to get test eth AC and PV key
run npx hardhat node

then just put in My MetaMask

put your PV key in here
then you have 10000ETH!!

 

복사했습니다!