{"uid":"cap_OL2VpNmyVod6Sh8VuittL","slug":"nightshift-labs-ens-resolve-api-4538cc52","name":"Nightshift Labs ENS Resolve API","description":"Resolve ENS and Basenames (name.eth, name.base.eth): name → address, or address → primary name with forward verification, plus text records (avatar, description, url, twitter, github, email).","url":"https://nightshift-x402.nightshift-labs.workers.dev/v1/ens/resolve?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":["q"],"properties":{"q":{"type":"string","description":"ENS/Basename (e.g. vitalik.eth, jesse.base.eth) or a 0x address for reverse lookup"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"vitalik.eth","type":"forward","query":"vitalik.eth","address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","records":{"url":"https://vitalik.ca"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_COcwWGQpeuDBcavoiEGtc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves an ENS or Basename to its Ethereum address (and records), or reverse-resolves a 0x address to its ENS name","exampleAgentPrompt":"What Ethereum address does vitalik.eth resolve to, and are there any URL records attached to it?","exampleUseCases":[{"title":"Wallet address lookup from ENS","prompt":"I need to send crypto to jesse.base.eth — can you look up what Ethereum address that Basename resolves to?"},{"title":"Reverse ENS lookup for wallet","prompt":"I have this wallet address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 — can you tell me what ENS name it belongs to, if any?"},{"title":"Fetch ENS profile records","prompt":"Can you resolve vitalik.eth and tell me what website URL or other records are attached to that ENS name?"}],"resultDescription":"A JSON object containing the resolved name, the query input, the resolution type (forward or reverse), the matching Ethereum address (0x format), and any attached ENS records such as URL. Example: {name: 'vitalik.eth', type: 'forward', query: 'vitalik.eth', address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', records: {url: 'https://vitalik.ca'}}","failureModes":["ENS name not registered or has no resolver — returns empty or null address","0x address has no reverse ENS record set — reverse lookup returns null name","Malformed query (not a valid ENS name or 0x address) — likely 400 or error response","ENS resolution service unavailable or timeout — 5xx error","Payment failure via x402 protocol — 402 response if USDC balance insufficient"],"whenToPreferThis":"Use this endpoint when you need to resolve ENS or Base names to Ethereum addresses (or vice versa) with pay-per-call pricing via x402/USDC on Base, requiring no API key setup — ideal for AI agents that need lightweight, on-demand ENS resolution without a subscription or self-hosted node. Prefer this over running your own ENS resolution if you want zero infrastructure overhead and are already operating in the x402 micropayment ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T01:02:35.370Z","isFirstParty":false,"canonicalSlug":"nightshift-labs-ens-resolve-api-4538cc52"}