diff --git a/src/content/data-feeds/ens.mdx b/src/content/data-feeds/ens.mdx index fc8e733a9f4..4f8e3c53bef 100644 --- a/src/content/data-feeds/ens.mdx +++ b/src/content/data-feeds/ens.mdx @@ -75,7 +75,7 @@ In Solidity, the address of the ENS registry must be known. According to [ENS do ENS registry address: [0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e](https://etherscan.io/address/0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e). -Also, instead of using readable string names like `eth-usd.data.eth`, resolvers accept bytes32 hash IDs for names. Hash IDs can be retrieved from [this subgraph](https://thegraph.com/explorer/subgraph/ensdomains/ens) or via this npm package [eth-ens-namehash](https://www.npmjs.com/package/@ensdomains/eth-ens-namehash). +Also, instead of using readable string names like `eth-usd.data.eth`, resolvers accept bytes32 hash IDs for names. Hash IDs can be retrieved from [this subgraph](https://thegraph.com/explorer/subgraphs/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH) or via this npm package [eth-ens-namehash](https://www.npmjs.com/package/@ensdomains/eth-ens-namehash). "ETH / USD" hash: `0xf599f4cd075a34b92169cf57271da65a7a936c35e3f31e854447fbb3e7eb736d` diff --git a/src/features/ens/components/EnsLookupForm.tsx b/src/features/ens/components/EnsLookupForm.tsx index 8c5df309669..d5f1c29cc07 100644 --- a/src/features/ens/components/EnsLookupForm.tsx +++ b/src/features/ens/components/EnsLookupForm.tsx @@ -30,15 +30,18 @@ export const EnsLookupForm = () => { }`, }) - const response = await fetch("https://api.thegraph.com/subgraphs/name/ensdomains/ens", { - method: "post", - body: data, - headers: { - "Content-Type": "application/json", - "Content-Length": data.length.toString(), - "User-Agent": "Node", - }, - }) + const response = await fetch( + "https://gateway-arbitrum.network.thegraph.com/api/934b65a95f6dd6f3d9a468d9cdda9ec6/subgraphs/id/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH", + { + method: "post", + body: data, + headers: { + "Content-Type": "application/json", + "Content-Length": data.length.toString(), + "User-Agent": "Node", + }, + } + ) const json = await response.json() const hashName = json.data.domains[0] ? json.data.domains[0].id : "Not Found"