Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 860 Bytes

etherscan.md

File metadata and controls

21 lines (12 loc) · 860 Bytes

🔎 Etherscan

hardhat-deploy lets you easily verify contracts on Etherscan, and we have added a helper script to /packages/hardhat to let you do that and we have abstracted the actual command away from the user. Please see the packages/hardhat/package.json and look for the 'verify' command, you will see the hardhat command in there (hardhat etherscan-verify --api-key <your_key>). You can pass the --network parameter.

Simply run:

cd packages/hardhat
yarn verify --network <network_of_choice>

{% hint style="warning" %} Make sure to change the script so it uses your own Etherscan API key for the "verify" command in packages/hardhat/package.json

"hardhat etherscan-verify --api-key <your_key>" {% endhint %}

And all hardhat's deployed contracts with matching ABIs for that network will be automatically verified.