{"uid":"cap_Dv2mcTeMQumiEArX_9MNo","slug":"ens-basename-resolver-x402-581dc893","name":"ENS & Basename Resolver (x402)","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/crypto/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_M5WEq_8sLbQ4BvfiacGWl","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 its Ethereum address (or reverse-resolves an address to a name), with verification status and associated records.","exampleAgentPrompt":"Can you resolve vitalik.eth to its Ethereum wallet address and verify it's safe to send funds to — confirm the forward and reverse records match?","exampleUseCases":[{"title":"Pre-transfer ENS safety check","prompt":"Before I send 1 ETH to jesse.base.eth, can you resolve that Basename to its actual 0x address and confirm the forward and reverse records are both verified and it's not a contract address?"},{"title":"Reverse-lookup wallet identity","prompt":"I have the address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 — can you reverse-resolve it to its ENS name and pull any associated avatar or URL records?"},{"title":"Onchain agent recipient validation","prompt":"My agent needs to send USDC to vitalik.eth — resolve that ENS name, verify the forward and reverse match, and tell me if it's a smart contract or a regular wallet on Base."}],"resultDescription":"Returns the resolved Ethereum address, the ENS or Basename, direction of resolution, whether forward and reverse records are verified, avatar and URL records, a safe-to-send boolean, contract status on Base (including EIP-7702 delegation), timestamp, and suggested next API calls for deeper onchain exploration.","failureModes":["ENS name does not exist or has no resolver — returns null address or error","Reverse record does not match forward record — verified=false, safe_to_send may be false","Address provided is not a valid 0x40-character hex — 400 validation error","Name is expired or recently transferred — stale resolution data","Payment failure via x402 protocol — 402 response if USDC payment not completed","Network timeout resolving ENS from Cloudflare Worker — transient 5xx error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to resolve human-readable ENS names or Basenames to Ethereum addresses before executing onchain actions, or when reverse-resolving addresses to names for display or identity verification. It is specifically useful for safety checks before token transfers because it returns a verified flag and safe_to_send boolean. Prefer this over generic ENS libraries when you need a pay-per-call REST interface with no API key setup, especially in agent pipelines already using x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:49.084Z","isFirstParty":false,"canonicalSlug":"ens-basename-resolver-x402-b2013f49"}