Repolode
NomicFoundation

NomicFoundation/hardhat

Ethereum development environment for compiling, deploying, testing, and debugging smart contracts and dapps.

Stars
8,517
Forks
1,736
Open issues
537
Last commit
7 hours ago

What is it?

Hardhat is an Ethereum development environment aimed at professional developers. It covers the routine work of building blockchain software: compiling Solidity contracts, running tests, checking code for mistakes, deploying contracts, and interacting with them from scripts.

The project is built and maintained by the Nomic Foundation and is written in TypeScript. Projects are set up with an interactive initializer run through npx hardhat --init, and the tool is extended through tasks and plugins. Documentation is hosted at hardhat.org. The current README covers Hardhat 3; the v2 line remains available on a separate branch.

Key features

  • 01Compile Solidity smart contracts
  • 02Run automated tests against contracts
  • 03Deploy contracts and interact with them from scripts
  • 04Debug contract execution
  • 05Extend the workflow with tasks and plugins

Use cases

  • Building and testing dapps and smart contracts before deploying to a network
  • Automating contract deployment and interaction scripts
  • Checking contract code for mistakes during development

Quick start

  1. 1

    Run the init command in an empty directory to install Hardhat and set up a project

    npx hardhat --init
  2. 2

    Follow the interactive setup prompts

Things to know

  • The license is listed as NOASSERTION, so the license terms could not be confirmed from the metadata.

Topics

FAQ

What is hardhat?
Ethereum development environment for compiling, deploying, testing, and debugging smart contracts and dapps. Hardhat is an Ethereum development environment aimed at professional developers. It covers the routine work of building blockchain software: compiling Solidity contracts, running tests, checking code for mistakes, deploying contracts, and interacting with them from scripts.
Is hardhat free to use? What license does it have?
hardhat is open source under the Other license. Check the license terms before using it in commercial products.
Is hardhat still maintained?
Actively maintained. The last commit to hardhat was on Oct 21, 2026.
What can I use hardhat for?
Building and testing dapps and smart contracts before deploying to a network Automating contract deployment and interaction scripts Checking contract code for mistakes during development
How do I install hardhat?
Run the init command in an empty directory to install Hardhat and set up a project: npx hardhat --init Follow the interactive setup prompts
Where can I get hardhat?
The source code and installation instructions are on GitHub: https://github.com/NomicFoundation/hardhat

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects