Verify contract code with Hardhat in Blockscout
Install plugin
npm install --save-dev @nomicfoundation/hardhat-verify
And add the following statement to your hardhat.config.js:
Or, if you are using TypeScript, add this to your hardhat.config.ts:
Config hardhat.config.js or hardhat.config.ts
Verify
Assuming we have deployed the Counter contract B² Network address details for 0xbcd2B61F456CB5D07bEf2B0eD5f5B9D5ED84C1c6 | Blockscout
We can use the following cli to verify
For more features, please refer to
Reference
Last updated