Replies: 1 comment 4 replies
-
This is absolutely easy to do in v5, functionality was added a while ago to make this easier. If you want to throw something together sooner than later, see the BscscanProvider. In v6, the EtherscanProvider supports a NetworkPlugin to change this, so the network object is sufficient to modify the EtherscanProvider configuration, so it will work out if there box. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now only mainnet and testnets on the
etherscan.io
domain are supported by theEtherscanProvider
However, it'd be great if we can support other Etherscan-run sites that share the same endpoints
I believe each of the above supports the same set of APIs as L1, though have not yet verified any except the
txlist
one. Even if they don't, we could move the "unsupported network" error to the specific unsupported methods instead of the constructor. Perhaps with a try/catch where we optimistically try the endpoint so we don't need a new ethers release to handle the case where Etherscan adds a new endpoint that wasn't previously supported by a networkFor context, my particular use case is that in Umbra we use the
getHistory
method to find a transaction sent by the specified address, then back out their public key from the transaction data. Lack of polygon support blocks our "advanced mode" functionality on polygon, so I'm happy to get a PR in for this in v5 if that'd help speed things up. (Of course we could use the Etherscan API directly as an alternative, but this is cleaner—just let me know where to source the default API keys from).Beta Was this translation helpful? Give feedback.
All reactions