{"uid":"cap_zNl1yb8C0edmY_dC2DZJ-","slug":"x402-base-address-preflight-risk-check-ea2645ab","name":"x402 Base Address Preflight Risk Check","description":"One-call Base (8453) preflight: risk snapshot + live ERC-20 approvals + OFAC SDN screen + optional x402 invoice check (?invoice= JSON or base64). Returns risk, approvals, invoice, sanctions and summary {verdict proceed|review|stop, flags}. Free sample: /api/preflight/sample. 400 bad input; 503 not charged. Informational, not a guarantee.","url":"https://x402-research-iota.vercel.app/api/x402/preflight?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","required":["address"],"properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"invoice":{"type":"string","description":"optional x402 PaymentRequired, raw JSON or base64"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"risk":{"type":"object"},"signed":{"type":"boolean"},"address":{"type":"string"},"invoice":{"type":["object","null"]},"summary":{"type":"object","properties":{"flags":{"type":"array","items":{"type":"object"}},"coverageNote":{"type":"string"},"highRiskCount":{"type":"number"}}},"approvals":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"risk":{"flags":[],"riskLevel":"low","accountType":"eoa"},"signed":false,"address":"0xf962...1afa","chainId":8453,"invoice":null,"summary":{"flags":[{"code":"unlimited_approval","level":"high","detail":"Unlimited USDC allowance to spender 0x1111...0a65.","source":"approvals"}],"verdict":"stop","riskLevel":"low","verdictNote":"Informational heuristic only, not a guarantee.","coverageNote":"Public-data heuristics only... \"none\" never means safe.","highRiskCount":1,"invoiceVerdict":null,"approvalsStatus":"ok","sanctionsStatus":"clear"},"approvals":{"status":"ok","approvals":[{"risk":"high","symbol":"USDC","spender":"0x1111...0a65","allowanceFormatted":"unlimited"}],"highRiskCount":1}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kELpZGdmQ4-ZBUX4RPwNO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs a one-call risk preflight on a Base (chain 8453) address: risk snapshot, live ERC-20 approvals, OFAC SDN sanctions screen, and optional x402 invoice validation, returning a verdict of proceed/review/stop.","exampleAgentPrompt":"Before I send that payment, run a preflight risk check on the Base address 0xf962...1afa — include the x402 invoice so you can validate it too, and tell me if I should proceed, review, or stop.","exampleUseCases":[{"title":"Pre-payment DeFi address safety check","prompt":"I'm about to interact with 0xAbCd...1234 on Base — can you run a full preflight check on it and tell me if there are any unlimited token approvals or sanctions hits I should worry about?"},{"title":"x402 invoice validation before paying","prompt":"Before I approve this x402 payment request, screen the payee address 0x1111...0a65 and validate the invoice to make sure it's legitimate and not a scam."},{"title":"OFAC sanctions screening for compliance","prompt":"We need to verify that wallet 0xDead...Beef on Base is not on any OFAC sanctions list before we process the transaction — can you run a sanctions and risk check on it right now?"}],"resultDescription":"Returns a JSON object with: a `risk` block (riskLevel, accountType, flags), an `approvals` block (list of ERC-20 approvals with token, spender, allowance, and per-approval risk rating), an `invoice` block (null if not provided), a `sanctions` status, and a `summary` block with an overall verdict (proceed/review/stop), high-risk flag count, verdictNote, and coverageNote. The `signed` boolean indicates if the address has signed transactions.","failureModes":["400 Bad Request — address is missing, malformed (not a valid 0x hex address), or invoice JSON is invalid","503 Service Unavailable — upstream data provider unavailable; no charge is applied","Invalid or unresolvable Base address returns empty approvals or low-confidence risk data","OFAC screen may have coverage gaps; 'clear' does not guarantee compliance","Heuristic risk flags are informational only and not a legal guarantee"],"whenToPreferThis":"Choose this endpoint when you need a single consolidated preflight check before interacting with an unknown Base (chain 8453) address — especially when you want risk assessment, ERC-20 approval audit, and OFAC sanctions screening in one call. Prefer it over separate approval or risk endpoints when you also need to validate an x402 invoice in the same request. It is particularly valuable for AI agents automating crypto payments that need a quick stop/proceed signal before committing funds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:32:52.475Z","isFirstParty":false,"canonicalSlug":"x402-base-address-preflight-risk-check-ea2645ab"}