Skip to main content
Verifying publishes your contract’s source so anyone can read it on the block explorer. Pick the route that matches how you deployed.

Verify contracts on Celo

Using Foundry

If you deployed with Foundry, verify with forge verify-contract. Set your API key first — get one at etherscan.io/register:
Celo Mainnet (chain ID 42220):
Celo Sepolia testnet (chain ID 11142220):
Passing --verify to forge create or forge script verifies right after deployment using the same ETHERSCAN_API_KEY. A [etherscan] block in foundry.toml is only needed to point Foundry at a custom verifier URL.