Replies: 1 comment
-
If you use the I’ve considered adding a short-lived cache to the JsonRpcProvider for chainId, but it does add some extra complexity. I prolly won’t make that change to v5, but v6 already has plenty of configuration available to the JsonApiProvider, so I could consider adding that. For now though, using a StaticJsonRpcProvider will resolve your issues. ;) |
Beta Was this translation helpful? Give feedback.
0 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.
-
Ethers Version
5.7.2
Search Terms
lookupAddress
Describe the Problem
I'm trying to reduce my API calls to Infura and noticed that
lookupAddress()
makes 13 POST requests for one lookup.7 of these requests return the same result. Is that correct?
redundant
result
valueIt appears to be looking up the chain ID redundantly?
(Thanks for developing this great library!! ❤️ )
Code Snippet
Contract ABI
No response
Errors
No response
Environment
Ethereum (mainnet/ropsten/rinkeby/goerli)
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions