{"uid":"cap_CMMUtYjgQ3WTvSEVGUUEj","slug":"ens-name-resolution-api-x-402-online-6b7fd6a6","name":"ENS Name Resolution API (x-402.online)","description":"ENS name resolution in both directions: an .eth name to its address, or an address to its primary ENS name, with the avatar when set. Query: ?name=vitalik.eth or ?address=0xd8dA…","url":"https://api.x-402.online/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":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rqTdSTFySb-rR69jkSuKh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves ENS .eth names to Ethereum addresses and reverse-resolves addresses to their primary ENS name, optionally including avatar.","exampleAgentPrompt":"What Ethereum address does vitalik.eth resolve to, and does it have an ENS avatar set?","exampleUseCases":[{"title":"Resolve ENS name before sending crypto","prompt":"Before I send ETH to nick.eth, can you look up what Ethereum address that ENS name resolves to so I can double-check it?"},{"title":"Identify wallet owner by ENS name","prompt":"I have this wallet address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 — does it have a primary ENS name set, and is there an avatar?"},{"title":"Display user profile from ENS","prompt":"For a user who connected their wallet 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B to my dapp, fetch their ENS name and avatar so I can show it in the UI."}],"resultDescription":"Returns the resolved Ethereum address for a given .eth name (forward lookup), or the primary ENS name and avatar URL for a given Ethereum address (reverse lookup). Response includes the ENS name, address, and avatar field when one is configured on the ENS record.","failureModes":["ENS name not registered or does not resolve to an address — returns null or not-found response","Address has no primary ENS name set — reverse lookup returns empty result","Invalid address format provided — returns validation error","ENS name has no avatar set — avatar field absent or null","Network or RPC timeout when querying ENS contracts — returns error"],"whenToPreferThis":"Use this endpoint when an agent needs to resolve ENS .eth names to Ethereum addresses or reverse-resolve wallet addresses to human-readable ENS identities, particularly in pay-per-call, no-account-required scenarios using x402/USDC on Base. Prefer this over running your own ENS node or using free public RPC endpoints when you want a reliable, metered, low-friction resolution service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:45:51.190Z","isFirstParty":false,"canonicalSlug":"ens-name-resolution-api-x-402-online-6b7fd6a6"}