Reduce queries to ENS to get the resolver contract #2070
sebastinez
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
For that purpose, you might be interested in using the I don’t think the library should maintain a cache, as there are cases where the resolver changes and then a lot of functionality needs to be added around setting cache expiry policies and a way to flush the cache. It would be a fairly simple extension to add as a sub-class of provider though. :) |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi folks,
I'm working currently on the Radicle Webclient (https://app.radicle.network) and we have plenty of
lookupAddress
andresolveName
calls for our UI.Now for every call ethers.js requests the ENS resolver contract, which is usually stays the same for a defined identity.
To reduce queries and make our UI more "snappy" we would like to provide the resolver as a optional argument to
lookupAddress
andresolveName
.Would that be something you are interested in?
We could provide a PR to implement it.
I could imagine for example for
lookupAddress
:Please let me know what you think!
Best regards!
Beta Was this translation helpful? Give feedback.
All reactions