Contract Verification
This guide explains how to verify CoW Protocol smart contracts on various block explorers, including Etherscan-based platforms and Tenderly.Etherscan-Based Verification
Supported Explorers
Batch Verification
Verify all deployed contracts at once:Individual Contract Verification
Certain contracts require constructor arguments for manual verification. The VaultRelayer requires the Balancer Vault address:The Balancer Vault address
0xBA12222222228d8Ba445958a75a0704d566BF2C8 is consistent across all networks.Tenderly Verification
Tenderly provides advanced debugging and monitoring capabilities.Setup
Verify Contracts
CI/CD Integration
Example GitHub Actions workflow:Troubleshooting
Best Practices
- Verify contracts immediately after deployment
- Maintain deployment artifacts in version control
- Document constructor arguments thoroughly
- Test verification scripts before mainnet use
- Verify across multiple explorers for redundancy