Etherscan API V2: Multichain

Etherscan API V2: Multichain is a major update designed to streamline your multichain development experience.

As multichain applications have expanded, developers have faced increasing challenges managing multiple API keys for different chains. This is what many project's GitHub repo looks like (a simplified version):

ETHERSCAN_API_KEY=VZFDUWB3YGQ1YCDKTCU1D6DDSS
BSCSCAN_API_KEY=ZM8ACMJB67C2IXKKBF8URFUNSY
SNOWSCAN_API_KEY=ATJQERBKV1CI3GVKNSE3Q7RGEJ
ARBISCAN_API_KEY=B6SVGA7K3YBJEQ69AFKJF4YHVX
OPTIMISM_API_KEY=66N5FRNV1ZD4I87S7MAHCJVXFJ

ETHERSCAN_API_URL=https://api.etherscan.io/api
BSCSCAN_API_KEY=https://api.bscscan.com/api
SNOWSCAN_API_KEY=https://api.snowscan.xyz/api
ARBISCAN_API_KEY=https://api.arbiscan.io/api
OPTIMISM_API_KEY=https://api-optimistic.etherscan.io/api

We listened, and Etherscan API V2 brings a unified approach to API access across 50+ supported chain IDs. Now, you just have to add a chain ID to query data from the desired chain.

What's New?

  • Single API Key: Access multiple chains using just one API key on Etherscan.
  • Cross-chain Simplicity: Query multichain data easily by adding a chain ID to your request.
  • Backward-Compatibility: While all updates are backward-compatible, we recommend switching to V2 for a smoother experience, as V1 will be deprecated over time.
  • Important Update: Starting January 2025, your API Pro subscriptions will be consolidated into your Etherscan account. Look out for a follow-up email with transition details.

Example Usage: Get Balances on Layer 2

You can start using Etherscan API V2 right away. Check the documentation for more details and examples. If you're new to Etherscan from other EVM explorers, please create an Etherscan account and generate an API key to access the V2 endpoints.

We're currently in beta, so please don't hesitate to reach out if you encounter any issues or have specific requests.

Teck Yuan Lee
Teck Yuan Lee
Last updated: