Verifying Contracts
Get an Etherscan API key
Follow the Etherscan documentation to get an API key.
Update Hardhat configuration
Add the below
etherscan configuration object to your Hardhat configuration file.Replace <your-etherscan-api-key-here> with your Etherscan API key from the previous step.hardhat.config.ts
Constructor Arguments
To verify a contract with constructor arguments, pass the constructor arguments to theverify command after the contract address.