debt: use the single Etherscan V2 API endpoint for unified verification / query flow w/ single API key #9196
Labels
A-internals
Area: internals
A-verification
Area: verification
T-debt
Type: code debt
T-feature
Type: feature
T-post-V1
Area: to tackle after V1
Component
Other (please describe)
Describe the feature you would like
We currently have a lot of code in place to handle multichain Etherscan verification due to the different endpoints and API keys associated with each.
With the release of Etherscan V2 there is now a single unified API endpoint: https://docs.etherscan.io/etherscan-v2 accessible with a single API key
Additional context
It is currently still in beta but worth exploring
Part of this ticket would be to double check if there are no breaking changes in the V2 API
Note: it requires passing a
?chainid=n
as a parameter wheren
is the chain id: https://docs.etherscan.io/etherscan-v2/getting-started/v2-quickstart#if-youre-coming-from-v1The text was updated successfully, but these errors were encountered: