Hardhat 3 requires Node.js v22.13.0 or later.
- New project: Clone the Monad template and work inside the cloned repository.
- Existing project: Do not clone the template into your project. Merge only the configuration shown below into your existing
hardhat.config.ts.
Start with the Monad template
The Monad Hardhat 3 template includes:- Monad Testnet and Mainnet network configuration
- Foundry-compatible Solidity tests and TypeScript tests using
node:test - Viem for TypeScript interactions
- Hardhat Ignition deployment modules
- Sourcify and MonadScan contract verification
Configure an existing Hardhat 3 project
Merge the following compiler and network settings into yourhardhat.config.ts. Keep any plugins and other project-specific settings already in the file.
prague EVM target is required when compiling contracts for Monad. For the canonical RPC URLs, chain IDs, and explorer URLs, see Network Information and Network Information - Testnet.
Confirm the updated project still compiles and passes its tests:

