Contract Verification
Verify the Shield contract source code on BaseScan for transparency.Why Verify?
- ✅ Users can verify contract logic
- ✅ Tools can read contract ABI
- ✅ Required for some integrations
- ✅ Builds trust
Hardhat Verification
Install Plugin
Configure
Get API Key
- Go to BaseScan
- Register account
- Go to API Keys
- Create new key
Verify
Manual Verification
If Hardhat verification fails, verify manually:- Go to BaseScan
- Search for contract address
- Click “Verify and Publish”
- Select:
- Compiler Type: Solidity (Single file)
- Compiler Version: 0.8.24
- License: MIT
- Paste source code
- Click “Verify”
Flattened Source
If using imports, flatten first:Shield_flat.sol.

