Skip to content

Hardhat Plugins

Extend Hardhat's functionality with the plugins below.

To learn how to create your own, check out our plugin development documentation.

Nomic Foundation's recommended bundle of Hardhat plugins (viem based)
Hardhat setup
template
viem
Nomic Foundation's recommended bundle of Hardhat plugins (ethers based)
Hardhat setup
template
Ethers.js
This plugin adds an encrypted keystore to Hardhat, to handle secret values (e.g. API keys and private keys) in your config securely.
Secrets
Keystore
Key management
Automatically verify contracts
Verification
Etherscan
Blockscout
A plugin that provides a set of utility functions to interact with locally simulated networks.
Network
Simulation
Helpers
Testing
Integrates viem into a Hardhat project
viem
Testing
Tasks
Scripts
Adds a set of viem-based testing assertions to Hardhat
viem
Testing
Assertions
Integrates Ethers.js into a Hardhat project
Ethers.js
Testing
Tasks
Scripts
Adds a set of ethers-based matchers to chai
Ethers.js
chai
Testing
Assertions
Generates TypeChain bindings for smart contracts
TypeChain
TypeScript
Bindings
Contracts
Hardhat's official deployment solution
Ignition
Deployment
Adds support for viem to Hardhat Ignition
Ignition
viem
Deployment
Testing
Adds support for Ethers.js to Hardhat Ignition
Ignition
Ethers.js
Deployment
Testing
Integrates Mocha into a Hardhat project
Mocha
Testing
Test runner
Integrates Node.js' builtin test runner into a Hardhat project
Node.js test runner
node:test
Test runner
Community Plugins are developed and maintained by the Hardhat community. They have not been written, reviewed, or endorsed by Nomic Foundation, so please use them at your own risk.
If you believe a plugin in this list is malicious, please report it to security@nomic.foundation .

Community plugins sorted by npm downloads

A Hardhat Plugin For Replicable Deployments And Easy Testing
Deployment
Testing
Scripts
Use the reown.com supported wallets with Hardhat
reown
walletconnect
Export Ethereum smart contract bytecode
bytecode
compilation
Git-rev-based HRE execution
git
hre
Compare storage layouts between contracts and revisions
storage
Output Solidity contract sizes with Hardhat
bytecode
Export Ethereum smart contract ABIs
abi
compilation
Verify contracts on Hashscan
verification
hashscan
Prepend local Solidity source files with an SPDX License Identifier
solidity
license
spdx
Display connected accounts and balances
accounts
signers
balance
Calculate Solidity contract inheritance order
solidity
inheritance
Remove Hardhat console.log imports and calls from Solidity source files
console
log
Upload local function selectors to the Ethereum Selector Database
selector
4byte