{"uid":"cap_Oye73eqJQKqz6NTCEJGeV","slug":"lion-x402-adaptive-query-40950304","name":"LION x402 Adaptive Query","description":"Keyless attested data for autonomous agents. USDC on Base via x402. Official @x402/* middleware.","url":"https://lion-x402-bible.lionmaster-operations.workers.dev/api/x402/adaptive-query","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":{"q":{"type":"string"},"mode":{"type":"string","description":"auto|rpc|domain|social"},"domain":{"type":"string"},"method":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"asset_id":"LION","resolved":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fZEKZlVOZFi-egEApZLOP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns keyless attested data for a given query using adaptive resolution modes (auto, rpc, domain, social) via x402 micropayment on Base USDC.","exampleAgentPrompt":"Look up attested on-chain data for the LION asset using auto mode — I need to know if it resolves and what the asset ID comes back as.","exampleUseCases":[{"title":"Resolve blockchain asset identity","prompt":"Can you query LION adaptive data for the asset ticker 'ETH' using auto mode and tell me if it resolves and what asset ID comes back?"},{"title":"Fetch domain-linked on-chain data","prompt":"I want to look up attested data for 'base.eth' using domain mode through LION — can you pull that and show me what it returns?"},{"title":"Verify social handle on-chain","prompt":"Check if the social handle 'lionmaster' resolves via LION's social mode and give me the attestation result."}],"resultDescription":"A JSON object containing at minimum an 'asset_id' string (e.g. 'LION') and a 'resolved' boolean indicating whether the query successfully resolved, plus any additional attested data fields returned by the adaptive resolution pipeline.","failureModes":["Payment not accepted — 402 returned if USDC micropayment not included or insufficient","Invalid mode value — must be one of auto, rpc, domain, social","Missing required 'q' query parameter — returns validation error","Query fails to resolve — resolved: false returned with partial or empty payload","Network or worker timeout on Cloudflare edge"],"whenToPreferThis":"Choose this endpoint when an AI agent needs keyless, attested on-chain data about a crypto asset, domain, or social identity on Base, and can pay $0.005 USDC per call via the x402 protocol. Particularly useful when you need adaptive resolution across multiple data modes (RPC, domain, social) without managing API keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:31:05.401Z","isFirstParty":false}