Skip to content
Back to skills

Evm Contract Source

ASecurity

Use this skill when the user asks to "get contract source code", "show verified contract", "fetch source from etherscan", "view smart contract code", or mentions viewing verified source code on EVM chains (Ethereum, Polygon, Arbitrum, etc.). Requires a contract address and optional chain parameter.

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
blockchaingobashapi

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill evm-contract-source --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Evm Contract Source?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Evm Contract Source
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-evm-contract-source/badge)](https://www.skillsdirectory.com/skills/majiayu000-evm-contract-source)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: evm-contract-source
description: Use this skill when the user asks to "get contract source code", "show verified contract", "fetch source from etherscan", "view smart contract code", or mentions viewing verified source code on EVM chains (Ethereum, Polygon, Arbitrum, etc.). Requires a contract address and optional chain parameter.
allowed-tools: Bash
---

# EVM Contract Source Fetcher

Fetches verified smart contract source code from block explorers (Etherscan, Polygonscan, etc.).

## Usage

Run the script with address and optional chain:
```bash
${CLAUDE_PLUGIN_ROOT}/scripts/crypto-evm-contract-source.sh <address> [chain]
```

## Arguments

- `address` (required): Contract address in hex format (0x + 40 hex characters). ENS names are NOT supported.
- `chain` (optional): Chain name - ethereum (default), polygon, arbitrum, optimism, base, bsc

## Supported Chains

| Chain | Aliases | Explorer |
|-------|---------|----------|
| ethereum | eth, mainnet | Etherscan |
| polygon | matic | Polygonscan |
| arbitrum | arb | Arbiscan |
| optimism | op | Optimism Etherscan |
| base | - | Basescan |
| bsc | binance | BSCScan |

## Requirements

- `cast` (Foundry) must be installed
- API key must be set for the target chain:
  - `ETHERSCAN_API_KEY` for Ethereum (also used as fallback for other chains)
  - `POLYGONSCAN_API_KEY` for Polygon
  - `ARBISCAN_API_KEY` for Arbitrum
  - `OPTIMISM_API_KEY` for Optimism
  - `BASESCAN_API_KEY` for Base
  - `BSCSCAN_API_KEY` for BSC

## Examples

```bash
# Get WETH source on Ethereum
${CLAUDE_PLUGIN_ROOT}/scripts/crypto-evm-contract-source.sh 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

# Get QuickSwap Router source on Polygon
${CLAUDE_PLUGIN_ROOT}/scripts/crypto-evm-contract-source.sh 0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff polygon
```

## Note

For Solana program IDL, use the `sol-program-idl` skill instead.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.