- Run following to test the code:
npx hardhat run scripts/run.js- Run following to deploy on local network and test the code:
npx hardhat run scripts/run.js --network localhost- Run following to deploy on test network:
npx hardhat run scripts/deploy.js --network rinkebySome Other commands:
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help