-
First install hardhat, Open up a new Terminal make sure you are inside hardhat directory:
npm install hardhat
-
Spin up a local chain:
npx hardhat node
-
Deploy the solidity smartcontract to the local chain
npx hardhat run --network localhost ignition/deploy.js
-
Connect your Metamask wallet to the local chain:
Add a network to you Metamask and paste in these details
Network name:
Hardhat chain
New RPC URL:
http://127.0.0.1:8545/
Chain ID:
31337
Currency symbol
hETH