{"uid":"cap_fGLCYvsF8ldc3BpCWSros","slug":"foundry-x402-preflight-and-base-contract-facts-b5695599","name":"Foundry: x402 Preflight and Base Contract Facts","description":"Pay-per-call data for agents: check x402 sellers before paying them, and read Base contracts' proxy, owner and privileged powers straight from the chain.","url":"https://minty-sprout.onrender.com/v1/schema-extract-guarded?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qU9z-1KctjZx2eWlyIDmU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks x402 payment endpoints before paying them and reads Base blockchain contracts for proxy, owner, and privileged role information directly from the chain.","exampleAgentPrompt":"Before I pay this x402 endpoint at https://api.example.com/data, run a preflight check on it and also tell me who owns the Base contract at 0xABC123... and whether it uses a proxy.","exampleUseCases":[{"title":"Vet an x402 seller before paying","prompt":"I'm about to pay an x402 API at https://some-provider.onrender.com/v1/data — can you check if it looks legitimate and safe before I send USDC?"},{"title":"Inspect Base contract ownership","prompt":"Who owns the Base smart contract at 0x1234567890abcdef1234567890abcdef12345678, and does it use a proxy pattern or have any special admin roles?"},{"title":"Agent payment safety guard","prompt":"Before my workflow pays any x402 endpoint, run a preflight on https://api.thirdparty.com/premium-endpoint to confirm the seller details and flag anything suspicious."}],"resultDescription":"Returns structured data about an x402 seller (metadata, legitimacy signals) and/or a Base contract's proxy configuration, owner address, and privileged role assignments read directly from on-chain state.","failureModes":["Invalid or unreachable x402 URL returns an error or empty seller info","Contract address not found on Base returns null or not-deployed error","Malformed input string causes a 400-level validation error","Non-Base contract address (wrong chain) may return no results","Rate limiting or upstream RPC failures may cause timeouts"],"whenToPreferThis":"Use this endpoint when an AI agent needs to vet an x402 payment endpoint before committing USDC, or when it needs to read ownership and proxy structure of a Base network smart contract without setting up a direct RPC connection. Prefer this over generic blockchain explorers when you need structured, agent-ready output for x402 ecosystem due diligence specifically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:54:14.518Z","isFirstParty":false,"canonicalSlug":"foundry-x402-preflight-and-base-contract-facts-61bbd961"}