-
Notifications
You must be signed in to change notification settings - Fork 160
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
Add Reverse Record to Account query #25
Comments
@scottrepreneur Thanks for the contribution! The ReverseRegistration event isn't a 100% reliable way to detect what name an address has set as its reverse record, though, as a user can set their reverse record to a custom resolver and change the name that way. A better way would probably be to add a Two caveats for this approach, though:
|
I came looking for the exact same thing- I ended up creating my own API to do this. You can host it yourself using Cloudflare: https://github.com/fafrd/ens-reverse-lookup |
@Arachnid What happened to your suggestion? Seemed like a good proposal. I have an app with list views full of addresses and I need to get the primary ENS names in one or two round-trips. I don't want to spam the RPC-s so I figured that I could do one batched call with Subgraph... but that does not seem to be the case if I understand this issue correctly. What is the recommended way to approach this situation -- handwrite a multicall implementation? |
This looks like the correct solution for reverse ENS lookup that can be added to the official ENS subgraph. @fafrd have you tried pushing a PR to this repo with your work? |
@ivelin I don't think I have the bandwidth to write and test the subgraph change at the moment. If anyone is looking to solve this issue, they should follow the instructions in Arachnid's comment above. Alternatively, it's possible to get this data directly on-chain: call the function |
Thank you for commenting. We are using the ethers js RPC option for now. It is not optimal because it makes unnecessary RPC calls to a read-mostly data structure. Would be good to see this function in the ENS subgraph at some point. I will add to my backlog. |
Right now Account only returns
it would be helpful to add a reverse record to the schema
The text was updated successfully, but these errors were encountered: