You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or even better, (re)verify a contract to check if contract verification works, and omit the API information if it doesn't. This would prevent these kind of errors.
The text was updated successfully, but these errors were encountered:
Might need some ideas for how to do this reliably for all chains.
As a first attempt, I tried to simply ping the chain.explorer.api.url with a HEAD request (aka a GET but only returns the headers) and then check that the status value is < 400. This works for maybe 50% for the existing chains, but for the rest, they return a 400 error. I think most are some kind of Etherscan API fork and seem to require module and action parameters with the request. So I then tried adding these basic query string params to all requests:
This seems to work for all chains except boba-bnb and boba-ethereum. I don't yet know if there is some kind of parameter combination that would work for all chain APIs.
I'm happy to try the contract (re)verification, but not quite sure what I would need to add to each chain object to allow this and how each chain would be different. e.g. what contract are we verifying?
From the Etherscan docs, it seems like there is quite a lot of data required to do this
Or even better, (re)verify a contract to check if contract verification works, and omit the API information if it doesn't. This would prevent these kind of errors.
The text was updated successfully, but these errors were encountered: