{"uid":"cap_YP6oBI1L4VMyFeITvQw1m","slug":"arn-x402-payguard-preflight-692a518c","name":"ARN x402 PayGuard Preflight","description":"ARN x402 PayGuard: Live x402 payment security for AI agents. Verify sellers before payment with preflight checks for price, network, asset, payTo, redirects, and payment-challenge consistency. Returns ALLOW, CAUTION, or BLOCK.","url":"https://agent-reliability-network.rajdeep-dutta-in.workers.dev/preflight","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"HTTPS URL of the x402 seller endpoint to inspect live"},"intended_spend_usdc":{"type":"number","description":"Optional maximum USDC amount the buyer intends to authorize","exclusiveMinimum":0}}},"responseSchema":{"type":"json","example":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x1111111111111111111111111111111111111111","checks":{"https":true,"x402_v2":true,"http_402":true,"reachable":true,"x402_valid":true,"exact_payment":true,"canonical_usdc":true,"positive_amount":true,"challenge_stable":true,"resource_binding":true,"content_type_sane":true,"supported_network":true,"no_unsafe_redirect":true,"reasonable_timeout":true,"asset_address_valid":true,"pay_to_address_valid":true,"pay_to_safe_receiver":true,"within_intended_spend":true,"structured_response_sane":true,"response_size_within_limit":true},"errors":[],"scheme":"exact","network":"eip155:8453","decision":"ALLOW","warnings":[],"reachable":true,"latency_ms":42,"x402_valid":true,"methodology":"live-security-v1","reason_codes":[],"x402_version":2,"payment_required":true,"quoted_price_usdc":0.03,"intended_spend_usdc":0.03,"quoted_price_atomic":"30000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Mn1U4KAQ9iCA_4p7dJiP8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs live preflight security checks on an x402 payment endpoint before an AI agent authorizes payment, returning ALLOW, CAUTION, or BLOCK with detailed check results.","exampleAgentPrompt":"Before you pay that x402 API at https://api.example.com/data, run a PayGuard preflight check on it — I'm planning to spend up to 0.05 USDC and want to make sure the price, payTo address, and network all look safe before you authorize anything.","exampleUseCases":[{"title":"Screen unknown x402 API before first payment","prompt":"I've never used this x402 seller at https://api.some-data-vendor.com/premium before — can you run a security preflight on it before I authorize payment? I'm willing to spend up to 0.10 USDC."},{"title":"Detect price manipulation in agentic loop","prompt":"My agent is about to pay an x402 endpoint at https://llm-gateway.example.com/inference — please verify the quoted price is consistent and stable and that the payTo address looks legitimate before it sends anything."},{"title":"Validate canonical USDC and Base network","prompt":"Check whether the x402 endpoint at https://payments.example.io/api is actually requesting canonical USDC on Base and not some fake asset, and let me know if it's safe to proceed with a 0.02 USDC payment."}],"resultDescription":"A JSON object containing a 'decision' field (ALLOW, CAUTION, or BLOCK), a full breakdown of 20+ named boolean security checks (HTTPS, address validity, redirect safety, price consistency, network support, etc.), the quoted price in USDC and atomic units, the payTo and asset addresses, the network identifier, latency_ms, warnings, errors, and reason_codes explaining any non-ALLOW decision.","failureModes":["Seller endpoint is unreachable — reachable:false returned with BLOCK decision","x402 challenge is unstable between requests — challenge_stable:false triggers CAUTION or BLOCK","Quoted price exceeds intended_spend_usdc — within_intended_spend:false triggers BLOCK","Non-canonical USDC asset address detected — canonical_usdc:false triggers BLOCK","Unsafe redirect detected on seller endpoint — no_unsafe_redirect:false triggers BLOCK","PayGuard service itself is unreachable or returns HTTP error","Malformed URL input causes validation failure before live check"],"whenToPreferThis":"Use this endpoint whenever an AI agent is about to authorize an x402 micropayment to an unknown or untrusted seller, especially in automated agentic loops where human oversight is limited. It is the right choice over generic HTTP probers or static allowlists because it performs live, x402-protocol-aware security checks including payment challenge stability, canonical USDC asset verification, payTo address safety, and redirect detection — all specific to the x402 payment protocol on Base/EVM chains.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:36:03.519Z","isFirstParty":false}