contract-verification

Automates deployed smart contract verification via Forge across major block explorers.

120|12|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ccashwell/evm-cortex --skill contract-verification-ccashwell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contract-verification
Source: https://github.com/ccashwell/evm-cortex/tree/main/skills/contract-verification
Command: npx skills add https://github.com/ccashwell/evm-cortex --skill contract-verification-ccashwell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Verifies deployed smart contracts across block explorers to ensure source transparency and trust for users and integrations.

Core Features & Use Cases

  • Verify deployed contracts on major explorers (Etherscan, Basescan, Arbiscan) using Forge and standard workflows.
  • Support for constructor-args encoding, source flattening, and proxy verification across multi-file deployments.
  • Use case: teams deploying DeFi or governance contracts can automatically verify after deployment to speed up audits and improve user trust.

Quick Start

Run forge verify-contract for your deployed contract address, provide the source path, and supply any required API keys to begin verification.

Frequently Asked Questions about contract-verification

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify a deployed smart contract on Etherscan using Forge?

To verify a deployed smart contract on Etherscan using Forge, you run forge verify-contract with the deployed address, provide the source path, and supply the required block explorer API keys. This ensures source transparency and trust for users.

What does source flattening mean for multi-file contract verification?

Source flattening for multi-file contract verification combines imported dependencies into a single file. This process is required by block explorers like Basescan and Arbiscan to match compiler settings and confirm the deployed bytecode corresponds to the provided source code.

Can I verify proxy contracts across block explorers automatically?

Yes, you can verify proxy contracts across block explorers automatically. The workflow supports proxy verification by matching implementation addresses and encoding constructor arguments to satisfy explorer requirements for multi-file deployments.

How do I encode constructor arguments for contract verification on Arbiscan?

Encoding constructor arguments for contract verification on Arbiscan involves formatting the initialization inputs into the ABI-encoded hex string expected by the explorer. Matching these encoded arguments and compiler settings ensures your deployed contract passes verification.

Why does my contract verification fail on Basescan after deployment?

Contract verification on Basescan fails when there is a mismatch between the deployed bytecode and the submitted source code. This usually happens due to incorrect compiler settings, improperly encoded constructor arguments, or unflattened multi-file dependencies.