Skip to content

debt: use the single Etherscan V2 API endpoint for unified verification / query flow w/ single API key #9196

@zerosnacks

Description

@zerosnacks

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 where n is the chain id: https://docs.etherscan.io/etherscan-v2/getting-started/v2-quickstart#if-youre-coming-from-v1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions