{"uid":"cap_Ca6TxVeiY5VEYJVsFAPCY","slug":"x402-deployer-x402-deployer-workers-dev-ff2fb105","name":"ENS Resolver — Forward & Reverse Ethereum Name Service Lookup","description":"ENS resolver / Ethereum Name Service lookup. Forward (vitalik.eth to address) and reverse (address to primary ENS) with text records (avatar, twitter, github, etc).","url":"https://x402-deployer.x402-deployer.workers.dev/ens-resolve","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["query"],"properties":{"query":{"type":"string","description":"ENS name (e.g. 'vitalik.eth') for forward lookup, or a 0x address for reverse lookup."},"text_records":{"type":"array","description":"Text record keys to fetch, e.g. [\"avatar\",\"com.twitter\"]. Optional, max 15; defaults to avatar/url/description/twitter/github/email/telegram."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"mode":{"type":"string"},"address":{"type":"string"},"ens_name":{"type":"string"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"query":"vitalik.eth","text_records":["avatar","com.twitter","com.github"]},"type":"http","method":"POST","bodyType":"json"}},"response":{"mode":"forward","source":"Ethereum mainnet (eth.llamarpc.com)","address":"0xd8da6bf26964af9d7eed9e03e53415d37aa96045","ens_name":"vitalik.eth","text_records":{"avatar":"https://euc.li/vitalik.eth","com.github":"vbuterin","com.twitter":"VitalikButerin"}}},"exampleRequest":{"query":"vitalik.eth","text_records":["avatar","com.twitter","com.github"]},"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_o1sd7KdziXoGyxEnd-dQF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves ENS names to Ethereum addresses (forward) and addresses to primary ENS names (reverse), including text records like avatar, Twitter, and GitHub.","exampleAgentPrompt":"What Ethereum address does vitalik.eth resolve to, and can you also pull any linked avatar and Twitter text records from ENS?","exampleUseCases":null,"resultDescription":"Returns the resolved Ethereum address for a forward lookup, or the primary ENS name for a reverse lookup, plus any requested text records such as avatar URL, Twitter handle, GitHub username, and other profile metadata stored on ENS.","failureModes":["ENS name not registered or expired — returns null or not-found response","Address has no primary ENS reverse record set — returns empty or null name","Text record key not set on the ENS name — returns null for that field","Invalid Ethereum address format — returns validation error","Network/RPC timeout reaching Ethereum nodes — returns 503 or timeout error","Payment failure (x402 USDC) — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to resolve .eth names to Ethereum addresses or reverse-resolve addresses to human-readable ENS names, especially when you also need ENS text record metadata (avatar, social handles). Prefer this over manual on-chain calls when you want a simple HTTP API without managing Ethereum RPC connections yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:51:18.273Z","isFirstParty":false}