hedera-docs icon indicating copy to clipboard operation
hedera-docs copied to clipboard

Add a new tutorial page on how to programmatically verify a contract on hedera using hardhat and foundry

Open kpachhai opened this issue 2 months ago • 2 comments

Problem

Sometimes, the manual contract verification is difficult to work with on hashscan. We can already programmatically verify contracts which is infinitely a better option than doing it manually. We just need a tutorial for this somewhere on the documentation.

Solution

Add two new subpages under https://docs.hedera.com/hedera/tutorials/smart-contracts/how-to-verify-a-smart-contract-on-hashscan

  • Verify a smart contract using Hardhat v3. Example: https://github.com/kpachhai/erc-8004-contracts-hardhat3
  • Verify a smart contract using Foundry. Example: https://github.com/kpachhai/erc-8004-contracts-foundry

Alternatives

No response

kpachhai avatar Oct 20 '25 16:10 kpachhai

@kpachhai we do also need to ensure that Hashscan manual approach works though!

jaycoolslm avatar Oct 23 '25 04:10 jaycoolslm

@kpachhai we do also need to ensure that Hashscan manual approach works though!

Manual approach also works. The above repos have been updated with how to verify manually(even though it's a little complicated).

kpachhai avatar Oct 23 '25 04:10 kpachhai