{"uid":"cap_etf4G0viXnv15UR53gziY","slug":"agentresolver-ens-namehash-594b2ad3","name":"AgentResolver ENS Namehash","description":"Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.","url":"https://agentresolver.vercel.app/api/ens-namehash","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"minLength":1}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BEMSlJ7ZG_zLS9u1xjBbY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the ENS namehash (EIP-137) for a given ENS name string","exampleAgentPrompt":"Can you compute the ENS namehash for 'myproject.eth' so I can use it to query the ENS registry on-chain?","exampleUseCases":[{"title":"ENS registry on-chain query","prompt":"I need the namehash for 'vitalik.eth' so I can look it up directly in the ENS registry smart contract — can you compute it for me?"},{"title":"Subdomain namehash derivation","prompt":"What is the ENS namehash for 'wallet.myprotocol.eth'? I need the node hash to configure a subdomain resolver on-chain."},{"title":"Smart contract integration prep","prompt":"Can you get me the namehash for 'dao.governance.eth'? I need to pass it as a parameter when calling an ENS-aware smart contract."}],"resultDescription":"A JSON object containing the computed EIP-137 namehash (hex string) for the provided ENS name, which can be used as a node identifier when interacting with ENS registry and resolver smart contracts.","failureModes":["Empty or missing name field returns validation error","Name exceeding 255 characters rejected","Malformed or invalid ENS label format may return an error","Service unavailable returns 5xx error","Payment not provided returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to programmatically derive the EIP-137 namehash for any ENS name, especially when preparing on-chain transactions or smart contract calls that require the node identifier rather than the human-readable name.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-19T12:43:38.873Z","isFirstParty":false}