{"uid":"cap_ebPJDPFUoA0mXxSIEaBWo","slug":"agent-buyer-identity-preflight-x402-purchase-governance-20661ae3","name":"Agent Buyer Identity Preflight | x402 Purchase Governance","description":"Machine-payable service intelligence for discovering, verifying, and monitoring identity, risk, authorization, execution-preflight, and evidence APIs before autonomous agents spend.","url":"https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/base/payment-due-diligence-bundle","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":["merchant_address","wallet_address"],"properties":{"tx":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$","description":"Optional transaction hash for payment proof and receipt evidence."},"since":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T.+Z$","description":"Return wallet activity observed at or after this timestamp."},"from_block":{"type":"string","pattern":"^[0-9]+$","description":"Return event logs from this Base block onward."},"wallet_address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Base buyer or agent wallet to analyze."},"expected_amount":{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]{1,6})?$","description":"Expected USDC amount for payment-proof verification."},"contract_address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Contract or address whose event logs should be monitored."},"merchant_address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Base merchant or API payment recipient address."},"expected_recipient":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Expected USDC recipient for payment-proof verification."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"network":{"type":"string"},"product":{"type":"string"},"activity":{"type":"object"},"identity":{"type":"object"},"assessment":{"type":"object"},"provenance":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"network":"eip155:8453","product":"base-payment-due-diligence-bundle","assessment":{"flags":[],"risk_level":"low","risk_score":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.075","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.075/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.075","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.075","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WM0pkUb4edrrtD5zmPLlB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.075","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs pre-purchase due diligence on an AI agent's wallet and buyer identity before it executes an x402 API payment, assessing risk, role fit, and approval policy compliance.","exampleAgentPrompt":"Before my agent at wallet 0xABCDEF1234567890ABCDEF1234567890ABCDEF12 pays merchant 0x9876543210ABCDEF9876543210ABCDEF98765432 for that x402 API, run a payment due diligence check to make sure the buyer identity fits, the risk is low, and there are no flags blocking the purchase.","exampleUseCases":[{"title":"Pre-purchase risk screen for agent fleet","prompt":"My autonomous agent at 0xABCDEF1234567890ABCDEF1234567890ABCDEF12 is about to pay merchant 0x9876543210ABCDEF9876543210ABCDEF98765432 for an x402 data API — can you run a preflight due diligence check to see if the wallet is flagged or the buyer role is approved for this product?"},{"title":"Verify payment proof after transaction","prompt":"My agent just sent 0.50 USDC to merchant 0x9876543210ABCDEF9876543210ABCDEF98765432 in transaction 0xabc123def456abc123def456abc123def456abc123def456abc123def456abc123 — can you verify that payment went through and confirm the risk assessment came back clean?"},{"title":"Governance check before sensitive dataset purchase","prompt":"Before my agent wallet 0xABCDEF1234567890ABCDEF1234567890ABCDEF12 buys a high-sensitivity dataset from merchant 0x9876543210ABCDEF9876543210ABCDEF98765432, check whether the buyer identity and approval policy allow this purchase and flag any compliance issues."}],"resultDescription":"Returns a JSON object containing the Base network identifier, product name, a risk assessment with risk_score (numeric), risk_level (e.g. 'low'), and a flags array listing any compliance or policy violations. May also include identity, activity, and provenance sub-objects providing wallet analysis detail.","failureModes":["Missing required wallet_address or merchant_address returns a 400 validation error","Invalid Ethereum address format causes schema rejection","Unrecognized or unsupported wallet returns empty identity object with unknown risk","Transaction hash not found on Base returns null provenance","Timeout or upstream blockchain node unavailability causes 503","High risk score returned but no actionable flag details provided"],"whenToPreferThis":"Use this endpoint when an AI agent needs to perform a governance and risk check before executing an x402 micropayment on the Base network — particularly when the product is sensitive, high-value, or subject to approval policies. Prefer this over generic wallet-balance checks when you need buyer role validation, risk scoring, and policy compliance in a single preflight call specific to the x402 purchase flow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:53:53.854Z","isFirstParty":false}