hardhat - Hardhat 3 development, testing, and network API guide
Provides guidance for working with Hardhat 3 projects, including writing Solidity and TypeScript tests, network connection APIs, and typechecking.
Tags
Updated: 2026-09-18Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Run Solidity and TypeScript tests
- Execute fuzz tests in Solidity
- Manipulate EVM state with cheatcodes
- Manage network connections
- Control EVM with networkHelpers
- Take and restore network snapshots
- Compile contracts and check types
Inputs
- Hardhat 3 project files
- Solidity and TypeScript test files
- forge-std library
Outputs
- Test execution results
- Test coverage reports
- Compiled contract ABIs and types
- EVM state snapshots
Requirements
- Hardhat 3
- Node.js environment with ESM support
- TypeScript compiler
