We can do that through lib
nameHash(“xxx.eth”) => “0xxxxxxx”
But I haven’t found any lib that does
hashToName(“0xxxxx”) => xxx.eth
How do I do that
We can do that through lib
nameHash(“xxx.eth”) => “0xxxxxxx”
But I haven’t found any lib that does
hashToName(“0xxxxx”) => xxx.eth
How do I do that
You cannot. Hashes are one-way.
You could attempt to look it up in the ENS subgraph, but it’s not guaranteed to have that information. Most .eth 2LD labels are in there though.