{"uid":"cap_jdfl-JQzx7H4Zjsw-dr_N","slug":"foundry-x402-preflight-base-contract-facts-b520cf34","name":"Foundry: x402 Preflight & 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/ai-crawler-policy?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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ca0LfpIdyjiVRMsPYeyoP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 proxy, owner, and privileged role data from Base mainnet smart contracts on-chain.","exampleAgentPrompt":"Before I pay this x402 endpoint at https://api.example.com/data, can you preflight it and tell me the seller's policy and whether it looks legitimate?","exampleUseCases":[{"title":"Preflight x402 seller before payment","prompt":"I'm about to call an x402-gated API at https://some-provider.com/v1/quotes — can you check their payment policy and tell me if anything looks off before I authorize the USDC?"},{"title":"Inspect Base contract ownership","prompt":"Can you look up who owns the Base mainnet contract at 0x1234abcd... and whether it's behind a proxy, so I know who controls it?"},{"title":"Audit privileged roles on a deployed contract","prompt":"I need to know the admin, owner, and any other privileged addresses on this Base contract at 0xdeadbeef... before I interact with it — can you pull that from the chain?"}],"resultDescription":"Returns structured data including x402 seller payment policies (accepted tokens, prices, terms) and/or Base contract facts such as proxy implementation address, owner address, and privileged role holders read directly from the blockchain.","failureModes":["Invalid or unreachable x402 URL returns an error or empty policy","Contract address not found or not deployed on Base mainnet","Input string malformed or exceeds 8000 character limit","Contract has no detectable proxy or owner (plain non-upgradeable contract)","Rate limiting or service unavailability on the Render.com host"],"whenToPreferThis":"Use this endpoint when an AI agent needs to vet an x402 payment endpoint before spending USDC, or when it needs trustless on-chain facts about a Base smart contract (ownership, proxy, privileged roles) without running its own node. Prefer it over general blockchain explorers when you want a single structured API call that combines x402 preflight safety checks with contract introspection in one step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:43.356Z","isFirstParty":false,"canonicalSlug":"foundry-x402-preflight-base-contract-facts-b520cf34"}