etherscan-verification

Verify deployed smart contracts on Etherscan-compatible explorers with Forge.

7|Updated Nov 27, 2025
One-click install
npx skills add https://github.com/sablier-labs/plugin-marketplace --skill etherscan-verification
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: etherscan-verification
Source: https://github.com/sablier-labs/plugin-marketplace/tree/main/plugins/web3/skills/etherscan-verification
Command: npx skills add https://github.com/sablier-labs/plugin-marketplace --skill etherscan-verification

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables verification of smart contracts on Etherscan-compatible explorers, covering standard verification and extended cases on chains via Etherscan's V2 API, proxy patterns, and factory-created deployments.

Core Features & Use Cases

  • Standard verification with Foundry's forge verify-contract for native chains.
  • Etherscan V2 API support for unsupported chains on Foundry.
  • Proxy and factory deployment verification, including extraction of constructor arguments from deployment data.

Quick Start

Run forge verify-contract with the contract address, source file and contract, plus the proper --verifier (etherscan) options. If the target chain is not supported by Foundry, add --verifier-url with the Etherscan V2 API endpoint and provide your API key, then watch for results.

Frequently Asked Questions about etherscan-verification

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

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

Verify smart contracts on Etherscan using Foundry's forge verify-contract command with your contract address, source file, and contract name. Provide your Etherscan API key and the command handles source code submission and bytecode matching automatically.

Can I verify contracts on chains Etherscan doesn't natively support?

Yes, use Etherscan's V2 API by passing --verifier-url with the endpoint and your API key to forge verify-contract. This extends verification to unsupported chains while maintaining the same workflow.

How do I verify proxy contracts deployed on Etherscan?

Proxy verification on Etherscan-compatible explorers requires verifying both the proxy contract and its implementation separately using forge verify-contract. Specify each contract address and implementation source file in distinct verification calls.

What do I need before verifying contracts with Foundry?

You need Foundry installed, an Etherscan API key, the exact contract source code, and the deployed contract address. For factory-created contracts, you also need the original deployment data to extract constructor arguments.

Does contract verification work with factory-deployed contracts?

Yes, factory-created contracts can be verified using forge verify-contract. Extract the constructor arguments from the deployment transaction data, then pass them to the verification command for accurate bytecode matching.