{"uid":"cap_5xXrzdknllPSC3Aq1e60W","slug":"x402-agent-hub-ens-resolver-5571ec92","name":"x402 Agent Hub ENS Resolver","description":"Resolve an ENS name to an address, or an address to its primary ENS name, via the Ethereum mainnet Universal Resolver (CCIP-read / offchain names supported). Pass exactly one of 'name' or 'address'. You only pay for successful reads: invalid input, not-found and upstream errors cancel settlement.","url":"https://x402-agent-hub.x402-agent-hub.workers.dev/v1/chain/ens?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","properties":{"name":{"type":"string","description":"ENS name to resolve, e.g. vitalik.eth."},"address":{"type":"string","description":"Address to reverse-resolve to its primary ENS name."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"vitalik.eth","address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","direction":"forward"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nTjprG5yKVEfHmnvL4DMM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves an ENS name to its Ethereum address (forward) or an Ethereum address to its primary ENS name (reverse), using the Ethereum mainnet Universal Resolver with CCIP-read support.","exampleAgentPrompt":"What Ethereum address does vitalik.eth resolve to? Use the ENS resolver.","exampleUseCases":[{"title":"Resolve ENS name before sending funds","prompt":"Before I send ETH to friend.eth, can you look up what Ethereum address that ENS name actually resolves to so I don't make a mistake?"},{"title":"Identify wallet owner by reverse ENS lookup","prompt":"I have this wallet address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 — does it have a primary ENS name registered?"},{"title":"Display human-readable names in a dapp","prompt":"I'm building a leaderboard and want to show ENS names instead of raw addresses. Can you resolve 0xAb5801a7D398351b8bE11C439e05C5B3259aec9B to its primary ENS name?"}],"resultDescription":"Returns a JSON object with the resolved ENS name, the corresponding Ethereum address, and the direction of resolution (forward for name→address, reverse for address→name). Example: {\"name\":\"vitalik.eth\",\"address\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\"direction\":\"forward\"}.","failureModes":["Invalid or malformed ENS name returns an error and cancels settlement","Address not found or no primary ENS name set returns not-found error","Both 'name' and 'address' provided simultaneously — only one is accepted","Upstream Ethereum node or Universal Resolver downtime causes upstream error (no charge)","Non-checksummed or malformed Ethereum address rejected as invalid input"],"whenToPreferThis":"Choose this endpoint when you need to resolve ENS names (including offchain/CCIP-read names) to Ethereum addresses, or reverse-resolve addresses to their primary ENS name on Ethereum mainnet. It is pay-per-successful-read with no charge on errors, making it cost-efficient for occasional lookups. Prefer this over general blockchain RPC calls when you want a simple, agent-friendly API without managing your own Ethereum node or ENS library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-14T12:33:20.749Z","isFirstParty":false,"canonicalSlug":"x402-agent-hub-ens-resolver-5571ec92"}