1. Setting up the Hardhat environment

Make sure you have installed Node.js and npm on your system before proceeding with this guide.

  1. Install Hardhat

npm install --save-dev hardhat
  1. Create a Hardhat project

npx hardhat
  1. Press enter on Create a JavaScript project

888    888                      888 888               888
888    888                      888 888               888
888    888                      888 888               888
8888888888  8888b.  888d888 .d88888 88888b.   8888b.  888888
888    888     "88b 888P"  d88" 888 888 "88b     "88b 888
888    888 .d888888 888    888  888 888  888 .d888888 888
888    888 888  888 888    Y88b 888 888  888 888  888 Y88b.
888    888 "Y888888 888     "Y88888 888  888 "Y888888  "Y888

Welcome to Hardhat v2.17.1

? What do you want to do? …
▸ Create a JavaScript project
  Create a TypeScript project
  Create an empty hardhat.config.js
  Quit

Make sure you install the hardhat toolbox by running

npm install --save-dev @nomicfoundation/hardhat-toolbox

If the process is successful, you will see the text Project created 🎉

Last updated