Go to buildspace and start building your own Web3 app 🤩
You can follow the project in buildspace for step by step guidance.
mkdir my-wave-portal
cd my-wave-portal
npm init -y
npm install --save-dev hardhat
Go ahead and create a sample project
npx hardhat
Now lets install the dependencies
npm install --save-dev @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers ethers
Use the following commands to run and test your hardhat project
npx hardhat compile
npx hardhat test
For testing out your contract locally use the following command
npx hardhat node
npx hardhat run scripts/run.js
You can deploy your contract into rinkeby testnet by
npx hardhat run scripts/deploy.js --network rinkeby
Following are some common hardhat commands:
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help
Powered by:
Contributions are welcome! 💜