A sample full stack dApp with React, Ethers.js, Solidity, and Hardhat
This project demonstrates a basic Hardhat use case. It has a sample contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts.
npx hardhat compile
npx hardhat node
npx hardhat run scripts/deploy.js --network localhost
After running deploy script, you should be able to see something like this as an output on the CLI:
Sample deployed to: 0x5FbDB2315678afecb367f032d93F642f64180aa38000
This address is what we will use in our client application to talk to the smart contract. Keep this address available and paste it to contractAddress parameter inside App.tsx of client application.
yarn start
npx hardhat accounts
npx hardhat clean
npx hardhat test
npx hardhat help