Skip to main content
This guide covers Hardhat 3. There is an official migration guide from the Hardhat team.
Hardhat is a smart contracts development tool, perfect if you’re familiar with Javascript/Typescript. This assumes you already have a Hardhat 3 project, setup, and you’re about to deploy and verify next.

Install

Via npm.

Config

In hardhat.config.ts, import the plugin at the top and add it to the list of plugins. Then, specify a verify config with your Etherscan API key. This key works for most supported chains, otherwise you need to define a CustomChain below.

Deploy and Verify (using Hardhat Ignition)

Verify an Existing Contract

Custom Chains

For new chains that have an Etherscan explorer but isn’t supported with Hardhat defaults, you need to add both the networks and chainDescriptor in hardhat.config.ts.
Use the same deploy and verify command as above, but with the updated --network. In this example for monadTestnet