{"uid":"cap_FjtBYTOV5HkCMY0_jS6sz","slug":"web3-tools-ens-namehash-c066f12f","name":"Web3 Tools ENS Namehash","description":"Compute the ENS namehash (EIP-137) and label hashes for a name such as vitalik.eth, for contract calls and subgraph queries.","url":"https://web3-tools.x402tookit.com/ens-namehash?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"An ENS name in lowercase ASCII, for example foo.eth"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"name":{"type":["null","string"]},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"node":{"type":["null","string"]},"label":{"type":["null","string"]},"labelhash":{"type":["null","string"]}}}},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"namehash":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"labelCount":{"type":["null","number"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"labelhashOfFirstLabel":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vd4PWKluP9Bvshegn85nE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the EIP-137 ENS namehash and per-label keccak256 label hashes for a given ENS name, ready for use in contract calls and subgraph queries.","exampleAgentPrompt":"Can you compute the ENS namehash and label hashes for vitalik.eth so I can use it in a Solidity contract call?","exampleUseCases":[{"title":"Contract call with ENS node","prompt":"I need to call the ENS registry contract directly — can you get me the namehash bytes32 value for mywallet.eth so I can pass it as the node parameter?"},{"title":"Subgraph query for ENS domain","prompt":"I'm querying The Graph for ENS data and need the namehash of myproject.eth to filter records — can you compute it for me?"},{"title":"Subdomain labelhash derivation","prompt":"Can you break down subdomain.myproject.eth into its individual label hashes and show me the namehash, so I can verify my ENS resolver setup?"}],"resultDescription":"Returns a structured object containing the full EIP-137 namehash (as a 0x-prefixed hex string), the labelhash for each individual label in the name, intermediate node values at each step of the hashing derivation, the label count, the labelhash of the first label, the source, and an asOf timestamp. Degraded or error states are flagged with a verdict and reasons array.","failureModes":["Name not provided (missing required 'name' query parameter) — likely returns 400 or validation error","Name contains uppercase or non-ASCII characters — result may be undefined or rejected","Malformed name (e.g. trailing dot, double dots) — may return degraded flag or error verdict","Payment not included or rejected — 402 Payment Required response","Service unavailable — 5xx response"],"whenToPreferThis":"Use this endpoint when you need the EIP-137-compliant namehash or per-label keccak256 hashes for an ENS name, particularly for passing a node parameter to ENS registry/resolver smart contracts or filtering ENS subgraph queries. Prefer it over manual computation when correctness of the multi-step hashing derivation matters, or when you need the intermediate node and labelhash breakdown for debugging ENS resolver configurations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:30:02.579Z","isFirstParty":false,"canonicalSlug":"web3-tools-ens-namehash-c066f12f"}