Create Hardhat Project

Set up a Hardhat project by installing dependencies, initializing a new npm project, and creating a sample Hardhat environment to deploy smart contracts on SupraEVM.


We will be using the Javascript project option after having the init command.

Install Hardhat and Dependencies

  • Create a new project directory and navigate into it:

mkdir hardhat-project
cd hardhat-project
  • Initialize a new npm project:

npm init -y
  • Install Hardhat:

npm install --save-dev hardhat
  • Create a sample project using Hardhat:

npx hardhat init