<
<
<
Hardhat 3 is now production ready. Migrate now
>
>
>
Hardhat 3: Rust-powered Solidity tests

Ethereum development environment for professionals

Get started

Ready to use out of the box

Hardhat includes everything you need for Solidity smart contract development. Testing, deployment, code coverage, code verification, and more.

Why hardhat?

Run Solidity tests on a Rust-powered runtime

Deploy your contracts, run Solidity tests, and debug your code on Hardhat’s new runtime written in Rust for outstanding performance.

Clear errors and Solidity stack traces

When transactions revert, Hardhat shows actionable errors like “Non-payable function was called with value 1,” alongside detailed Solidity stack traces to pinpoint exactly where and why your code fails.

Feature card picture
Feature card picture

Comprehensive testing approach

Write unit tests in Solidity for speed and conciseness, integration tests in TypeScript for expressiveness and complexity, or fuzzing tests to push the edges. Decide on a case by case basis.

Multi-chain ready: Optimism’s OP Stack and Base simulation support

Manage multiple networks at the same time and confidently deploy on OP Stack knowing your code was tested on an accurate simulation.

Feature card picture
Feature card picture

Simple and reliable deployments

Define your contract instances, their operations, and Hardhat Ignition will drive the complex details and parallelize execution.

Plugin ecosystem

Extend Hardhat with a composable ecosystem of plugins that add functionality and integrate your existing tools into a smooth workflow.

Feature card picture
Feature card picture

TypeScript extensibility

A tooling platform designed to be extended, Hardhat has all the utilities you need to address your project-specific needs. Change anything you like. Even entire built-in tasks, or just parts of them.

For teams and projects of any scale

From single hacker quickly iterating on a proof of concept to full blown engineering organization dealing with ad-hoc needs at scale, Hardhat adapts as your needs change

Feature card picture
Feature card picture
Flexible. Extensible. Fast.
Build your software your way—without limitations.

What's new in Hardhat

hardhat@3.0.9
4 days ago

hardhat 3.0.9

This release is a small bug fix release to resolve an ordering issue with the `npx hardhat flatten` task.
Learn more 
4 days ago

hardhat-node-test-runner 3.0.4

This release is a small improvement to automatically set `NODE_ENV` to "test" when running the `npx hardhat test nodejs` task.
Learn more 
4 days ago

hardhat-mocha 3.0.4

This release is a small improvement to automatically set `NODE_ENV` to "test" when running the `npx hardhat test mocha` task.
Learn more 

From the Hardhat blog

Solidity vs. TypeScript tests: How to choose and combine in Hardhat 3

Solidity vs. TypeScript tests: How to choose and combine in Hardhat 3

Testing is central to Ethereum smart contract development, as bugs and vulnerabilities can lead to catastrophic losses. Most projects tests contracts either in TypeScript or Solidity. With Hardhat 3, you don’t have to choose between writing all your tests in Solidity or in TypeScript — both are first-class options, they can be combined, and each brings their unique strengths. The key is knowing where each approach fits best, and how they complement one another. Solidity Tests Writing tests d

Rust-powered Hardhat: Present & Future

Rust-powered Hardhat: Present & Future

In March, we released Hardhat v2.21.0, the first version powered by our brand new Ethereum Development Runtime (EDR, for short) implemented in Rust. This was a significant change under the hood, representing the rewriting of Hardhat's largest and most complex component—its Ethereum simulation layer—in a new language. By design, this update didn’t affect the user experience beyond improving performance. In this post, we’ll explain why we built EDR, discuss its current status, and outline what’s c

Secure deployments with Hardhat Ignition and Ledger hardware wallets

Secure deployments with Hardhat Ignition and Ledger hardware wallets

As you may know, we recently introduced Hardhat Ignition, a declarative system for deploying smart contracts on Ethereum, which aims to…

Tell me about new product features as they come out