Hardhat
Hardhat is an Ethereum development environment for compiling contracts, running them on a development network, and debugging with Solidity stack traces.
- Category
- Security & Risk
- Used for
About Hardhat
Hardhat is an Ethereum development environment designed for smart contract development. It allows developers to compile smart contracts and execute them on a local development network. The tool is built by the Nomic Foundation.
Hardhat provides support for writing unit and integration tests, debugging smart contracts, and deploying them using a declarative system called Hardhat Ignition. It also offers a customizable platform that can be extended with a composable ecosystem of plugins.
Key features
- Executes Solidity tests using a Rust-powered runtime for performance optimization.
- Provides actionable errors and Solidity stack traces when transactions revert.
- Supports unit tests in Solidity, integration tests in TypeScript, and fuzzing tests.
- Includes simulation support for OP Stack and Base networks to handle multi-chain deployments.
- Uses Hardhat Ignition to automate and parallelize smart contract deployment execution.
- Allows customization of built-in tasks using TypeScript extensibility.
What it is used for
- Compile smart contracts using development tools like slang-solx.
- Deploy smart contracts securely using Hardhat Ignition and hardware wallets.
- Debug failing contract calls using console logs and detailed execution traces.
- Simulate network conditions by running a local development node or forking an existing network.
- Measure code coverage and gather gas statistics for contract test suites.
What it does
Used for
Who it is for
Kind of tool
- Other
Platforms
- SDK
- CLI
Things to know
- Hardhat uses cookies to enhance user experience on its platform.
- Changes in gas metering for state creation can alter transaction costs during testing.
Links
Verification and freshness
- Not verified yet.
- Last updated on November 8, 2026.