Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Queries Etherscan V2 unified API across 60+ EVM chains for ABIs, transactions, logs, balances and verification, with Foundry cast fallbacks.
Use this skill ↓50% 77%+27 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 11 of 22 without it.
Provide the terminal command to verify a contract named TokenVault deployed at 0x9999... on Ethereum Sepolia testnet using Foundry CLI.
Passes --chain-id 11155111
3 of 3 safety checks passed
Query any major EVM chain's block explorer via the Etherscan V2 unified API, with Foundry cast as a fallback for paid-tier endpoints. One Etherscan.io API key works across every supported chain through V2 — BscScan/PolygonScan/etc. keys do not work and are no longer needed.
Etherscan V1 was deprecated 2025-08-15. V2 is the only API path going forward.
Base URL: https://api.etherscan.io/v2/api
API key: {{vault:ETHERSCAN_API_KEY}}
Auth pattern: &apikey={{vault:ETHERSCAN_API_KEY}}
Chain selector: &chainid=<id> (REQUIRED on every call — no default)
Free tier: 3 req/sec, 100k req/day
Most-used chains:
| Chain | chainid | Native | Default RPC |
|---|---|---|---|
| Ethereum mainnet | 1 | ETH | https://eth.llamarpc.com |
| BSC | 56 | BNB | https://bsc-dataseed.binance.org |
| Polygon | 137 | MATIC | https://polygon-rpc.com |
| Arbitrum One | 42161 | ETH | https://arb1.arbitrum.io/rpc |
| Optimism | 10 | ETH | https://mainnet.optimism.io |
| Base | 8453 | ETH | https://mainnet.base.org |
| Avalanche C-chain | 43114 | AVAX | https://api.avax.network/ext/bc/C/rpc |
| Sepolia | 11155111 | ETH | https://ethereum-sepolia-rpc.publicnode.com |
| Base Sepolia | 84532 | ETH | https://sepolia.base.org |
| Arbitrum Sepolia | 421614 | ETH | https://sepolia-rollup.arbitrum.io/rpc |
Full list: see references/chains.md.
This is the most important table to internalize. Many endpoints are gated behind paid plans on non-Ethereum chains.
| Endpoint | ETH (1) | Polygon (137) | Arbitrum (42161) | BSC (56) | Base (8453) | OP (10) | Avalanche (43114) |
Next to this one in the catalogue, plus more from the same author.