Skip to content

Etherscan V2 #1388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 15, 2025
Merged

Etherscan V2 #1388

merged 3 commits into from
May 15, 2025

Conversation

hippocampus-web3
Copy link
Collaborator

@hippocampus-web3 hippocampus-web3 commented May 9, 2025

This PR updates our Etherscan integration to support the new Etherscan V2 API, as the V1 API is scheduled to be deprecated by the end of the month.

Following the official migration guide (Etherscan V2 Quickstart), the update introduces support for V2 by adding the required chainId parameter.

To ensure maximum compatibility and flexibility, support for V1 has been retained, allowing users to choose between V1 and V2 providers depending on their needs. This is particularly important in case certain chains or explorers (e.g., Snowtrace) diverge from Etherscan's V2 implementation or are not yet fully supported.

By default, V2 is now enabled for Ethereum, Avalanche, Base, BSC, and Arbitrum, which means any integrations using default configurations for these clients may be affected.

Additionally, the environment variable ETHERSCAN_API_KEY is now used as the unified API key across all supported chains.

@hippocampus-web3 hippocampus-web3 marked this pull request as ready for review May 13, 2025 16:34
@Thorian1te Thorian1te merged commit 89585ee into master May 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants