{"uid":"cap_SFxx0vPuKKWPnQE31avgN","slug":"ens-basename-resolve-reverse-lookup-94259a3e","name":"ENS / Basename Resolve & Reverse Lookup","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/api/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","properties":{"name":{"type":"string","examples":["vitalik.eth","jesse.base.eth"],"maxLength":255,"description":"ENS name or Basename, e.g. vitalik.eth, jesse.base.eth"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","examples":["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"],"description":"Address for reverse lookup"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"vitalik.eth","next":["/crypto/contract-info?address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045","/crypto/wallet-snapshot?wallet=0xd8da6bf26964af9d7eed9e03e53415d37aa96045"],"input":"vitalik.eth","address":"0xd8da6bf26964af9d7eed9e03e53415d37aa96045","records":{"url":"https://vitalik.ca","avatar":"eip155:1/erc1155:0xb32979486938aa9694bfc898f35dbed459f44424/10063"},"summary":"vitalik.eth -> 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 (reverse matches: verified)","verified":true,"direction":"forward","checked_at":"2026-10-30T05:40:00Z","is_basename":false,"reverse_name":"vitalik.eth","safe_to_send":true,"contract_check":{"chain":"base","is_contract":false,"eip7702_delegated":false}}},"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_LsXsFEtoyKPcv0whGpLQY","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 or Basename to an Ethereum address (or reverse-looks up a name from an address), returning verified identity metadata, records, and send-safety status.","exampleAgentPrompt":"Can you resolve vitalik.eth to its Ethereum address and confirm that the reverse lookup also matches, so I know it's safe to send funds to?","exampleUseCases":[{"title":"Safe send address verification","prompt":"Before I send USDC to jesse.base.eth, can you resolve that Basename to an address, check it's not a contract, and confirm the forward and reverse lookups are both verified?"},{"title":"ENS profile record fetch","prompt":"Look up vitalik.eth for me — I need the wallet address it resolves to plus any profile records like avatar or website URL stored in the ENS registry."},{"title":"Reverse lookup wallet identity","prompt":"I have the address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 — can you do a reverse ENS lookup and tell me what name it's registered under?"}],"resultDescription":"Returns the resolved Ethereum address, reverse name, verification status (forward/reverse match), safe_to_send flag, ENS records (URL, avatar), the direction of lookup, whether it's a Basename, a contract check on Base (is_contract, eip7702_delegated), a timestamp, and suggested next API paths for deeper onchain analysis.","failureModes":["ENS name does not exist or is unregistered — returns null address or error","Address has no reverse record set — reverse lookup returns empty name","Forward and reverse lookups do not match — verified=false, safe_to_send=false","Invalid address format (non-0x hex) — schema validation error","Name exceeds 255 character limit — rejected by input schema","Network or ENS resolver outage — upstream timeout or 5xx error","Payment via x402 not completed — 402 response, no data returned"],"whenToPreferThis":"Choose this endpoint when an onchain AI agent needs to resolve human-readable ENS or Basename identifiers to Ethereum addresses before executing transfers, or needs to verify that a name-address pair is trustworthy (bidirectional verification + safe_to_send). It also surfaces ENS profile records (avatar, URL) and performs a contract check on Base, making it a single-call identity enrichment step. Prefer over raw RPC calls when you need the full trust verification bundle without managing your own ENS resolver infrastructure. No API key required; pay $0.002 USDC per call via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:05.287Z","isFirstParty":false,"canonicalSlug":"ens-basename-resolve-reverse-lookup-5b1f89fe"}