-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
debt: use the single Etherscan V2 API endpoint for unified verification / query flow w/ single API key #9196
Comments
Has this been started or would taking a first PR pass be helpful? |
Hi @iainnash, this is definitely something we will want to do, just outside of the scope of our 1.0 milestone due to scope of the change (I expect we can simplify quite a lot of code and likely make breaking changes). We also have to be mindful that the Etherscan API V2 is still in beta. A first PR pass to explore this would be very useful, even if it is just a draft! |
Update, diff'd against Etherscan V1, V2 removes support for - other than that all changes have been additive:
These have all been deprecated, Blast Testnet being replaced by I think we are fine with moving ahead with the implementation |
Sounds good.
…On Thu, Dec 19, 2024 at 09:47 zerosnacks ***@***.***> wrote:
Update, diff'd against Etherscan V1, V2 removes support for:
23888 (Blast Testnet)
420 (Optimism Goerli Testnet)
5 (Goerli)
59140 (Linea Goerli)
These have all been deprecated, Blast Testnet being replaced by 168587773
I think we are fine with moving ahead with the implementation
—
Reply to this email directly, view it on GitHub
<#9196 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGMCOGV6B5XVAB332AM3OL2GLMABAVCNFSM6AAAAABQS7FELGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJUGQYDAOJRGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Optimistically assigned this to you @iainnash, let me know if I misunderstood you or have any questions |
Yep thanks! None right now will try to get to this early next week.
|
It seems like the best place for this to be implemented is in block-explorers unless there is a desire to move this logic into foundry core such as how sourcify is done. |
Changes in the verification API endpoint (e.g. |
Submitted this PR to get the verification api endpoint updated to allow requesting with V2 endpoint. Next would be updating the forge-verify side of the code to support a new flag or adapter for V2. |
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: