{"uid":"cap_Ww93PMvBNkgjECf6Qcc5K","slug":"ens-basename-name-resolution-6278cd76","name":"ENS / Basename Name Resolution","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/v1/name-resolution?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_DUUvjGpExW4cM2eUdKq0y","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), with verification, records, and contract-safety checks.","exampleAgentPrompt":"Resolve vitalik.eth to its Ethereum address and confirm the reverse record matches so I know it's safe to send funds to.","exampleUseCases":[{"title":"Safe address verification before token send","prompt":"Before I send 50 USDC to jesse.base.eth, resolve it to an Ethereum address and check whether the forward and reverse records are verified and it's safe to send to."},{"title":"Reverse lookup from address to name","prompt":"I have the address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 — can you do a reverse lookup and tell me what ENS name it maps to?"},{"title":"Avatar and profile record fetch for a dApp","prompt":"Fetch the ENS records for vitalik.eth — I need the avatar and URL records to display in the profile section of my app."}],"resultDescription":"Returns the resolved Ethereum address, the direction of resolution (forward/reverse), whether the name is verified (forward and reverse match), ENS text records (avatar, URL), whether the address is a contract or EOA on Base, an EIP-7702 delegation flag, a safe_to_send boolean, a checked_at timestamp, and suggested follow-up endpoint paths for further data.","failureModes":["Name not found or not yet registered returns an error or null address","Reverse record not set means reverse_name will be absent and verified will be false","Invalid address format (non-0x hex) rejected by regex validation","ENS resolution timeout if upstream ENS resolvers are slow","Mismatched forward/reverse records returned with verified: false and safe_to_send: false","x402 payment failure if USDC balance is insufficient returns HTTP 402"],"whenToPreferThis":"Use this endpoint when an AI agent needs to resolve a human-readable ENS or Basename to an Ethereum address before executing an onchain action (e.g., token transfer, contract call), or when building a UI that displays ENS profile data. Prefer this over manual RPC calls because it bundles forward resolution, reverse verification, contract detection, and ENS record retrieval in a single pay-per-call request with no API key required, billed at $0.002 USDC via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:34:19.937Z","isFirstParty":false,"canonicalSlug":"ens-basename-name-resolution-6278cd76"}