Repository
- Code: github.com/berachain/guides/tree/main/apps/hardhat-contract-verification
- README (raw): raw README
Requirements
- Node, npm, Hardhat
- Deployed contract address and constructor arguments (if any)
- Same Solidity version and build settings as deployment
Stack
Hardhat, Ethers v6, Solidity, Hardhat Etherscan/Verification plugin.Quick start
- Clone and install
- Configure Hardhat for Berachain (network and verify task); see README.
- Run the verify task, e.g.
npx hardhat verify --network berachainTestnet <ADDRESS> <CONSTRUCTOR_ARGS...>.