Skip to main content
After deploying your contract, verify it on the block explorer to make the source code publicly available and enable users to interact with it.

Block Explorers

Testnet (DuKong)

Mainnet

Using Hardhat

Hardhat Verify Plugin

Install the verification plugin:
Add to hardhat.config.js:
Verify your contract:

Using Foundry

Forge Verify

Manual Verification

  1. Go to the block explorer
  2. Navigate to your contract address
  3. Click “Verify and Publish”
  4. Fill in the verification form:
    • Compiler version
    • Optimization settings
    • Source code
    • Constructor arguments (if any)

Verification Requirements

  • Contract source code
  • Compiler version used
  • Optimization settings
  • Constructor arguments (if applicable)
  • Contract address

Next Steps