Hardhat is an open-source development environment for Ethereum and other EVM-compatible chains, maintained by the Nomic Foundation. Developers use it to compile Solidity code, run automated tests, debug failing transactions and deploy smart contracts. It is driven from the command line and configured in JavaScript or TypeScript, and a large plugin ecosystem adds tools such as contract verification and gas reporting.
A central feature is its built-in local network, which runs a private chain on the developer's machine for testing, can copy the state of a live network at a given block, and gives readable error messages and stack traces when a transaction fails. Hardhat largely replaced Truffle, an earlier framework whose maintainer, ConsenSys, wound it down in 2023. Its main rival is Foundry, a Rust-based toolkit in which tests are written in Solidity. Many teams use both, alongside browser tools such as Remix.
Ref 1300000377