{"uid":"cap_IVh_y_N8BW0qvuSS6fq5Y","slug":"straelo-relay-x402-payment-preflight-decision-1b5b97cb","name":"Straelo Relay x402 Payment Preflight Decision","description":"Check an x402 payment request before signing or paying and return a deterministic PAY, REVIEW or DO_NOT_PAY decision.\nUSE WHEN: agent needs deterministic verification of a payment requirement before deciding whether to pay.\nDO NOT USE WHEN: agent expects this tool to execute the payment.\nOffline/read-only preflight: no network calls, signing, settlement, or payment execution. Decision derives from comparing declared intent against the supplied x402 v2 PAYMENT-REQUIRED; mismatches yield","url":"https://relay.straelo.com/x402-payment-preflight-decision?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"intent":{"type":"object","required":["seller","service","resource"],"properties":{"seller":{"type":"string","description":"Caller-supplied seller label included in the fingerprint; identity is not externally verified."},"service":{"type":"string","description":"Expected resource.serviceName."},"resource":{"type":"string","format":"uri","description":"Expected exact absolute HTTP(S) resource URL."},"expected_asset":{"type":"string","description":"Optional expected EVM asset address."},"expected_amount":{"type":"string","description":"Optional expected USDC decimal amount, not atomic units."},"expected_pay_to":{"type":"string","description":"Optional expected EVM payment destination."},"amount_tolerance":{"type":"string","description":"Optional permitted USDC decimal increase."},"expected_network":{"type":"string","description":"Optional expected CAIP-2 network."}},"description":"Buyer-declared payment policy: expected seller label, service, resource URL, and optional payment constraints (asset, network, destination, amount, tolerance) used to evaluate consistency against the observed x402 challenge."},"payment_required":{"type":"object","description":"Observed x402 v2 PAYMENT-REQUIRED challenge decoded as JSON."},"previous_snapshot":{"type":"object","description":"Optional prior snapshot for stateless material-change detection against a prior result."}}},"responseSchema":{"type":"json","example":{"changes":[],"matched":{},"coverage":{},"decision":"PAY","evidence":{},"snapshot":{},"assessment":"CONSISTENT","mismatched":{},"reason_codes":[],"checks_skipped":[],"external_calls":[],"checks_performed":[],"payment_fingerprint":"sha256"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GdqL-UfwK8JMUPZjiZUhZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs an offline, read-only preflight check on an x402 v2 PAYMENT-REQUIRED challenge and returns a deterministic PAY, REVIEW, or DO_NOT_PAY decision by comparing it against declared buyer intent.","exampleAgentPrompt":"Before paying this x402 challenge, run a preflight check: my intent is to pay 'DataProvider' for their 'weather-data' service at 'https://api.dataprovider.com/v1/weather', expecting 0.01 USDC on Base to destination 0xAbC123... — here's the PAYMENT-REQUIRED JSON they returned. Tell me if I should PAY, REVIEW, or DO_NOT_PAY.","exampleUseCases":[{"title":"Guard rails for autonomous agent payments","prompt":"My AI agent is about to pay an x402 invoice from 'ResearchHub' for the 'paper-search' service at 'https://researchhub.io/api/papers', expecting no more than 0.005 USDC on Base. Here's the PAYMENT-REQUIRED challenge it received — give me a PAY, REVIEW, or DO_NOT_PAY verdict before it signs anything."},{"title":"Detect tampered payment challenges","prompt":"I want to compare this new x402 PAYMENT-REQUIRED challenge from 'PriceFeed' against the snapshot I got last week — same seller, service 'eth-prices', resource 'https://pricefeed.io/eth/usd'. Has anything material changed, and should I still pay it?"},{"title":"Policy enforcement before micropayment signing","prompt":"Check this x402 payment challenge before my agent pays: seller is 'MapTiles', service 'tile-stream', resource 'https://maptiles.xyz/v2/tiles', expected asset is USDC on Base, expected destination 0xDef456..., and I'll tolerate up to 0.001 USDC overage. Here's the raw PAYMENT-REQUIRED JSON — do I get a PAY decision?"}],"resultDescription":"A deterministic decision object containing one of three verdicts — PAY, REVIEW, or DO_NOT_PAY — along with the specific mismatches found between the buyer's declared intent and the observed x402 v2 challenge fields (seller, service name, resource URL, asset address, payment destination, network, and amount). Optionally includes a material-change flag when a previous snapshot is provided for stateless change detection.","failureModes":["Malformed or missing payment_required JSON returns a validation error","Missing required intent fields (seller, service, resource) causes a 400-level rejection","Resource URL not in absolute HTTP(S) format triggers schema validation failure","Amount provided in atomic units instead of decimal USDC may produce incorrect comparison","Previous snapshot schema mismatch prevents change detection, returning partial result","Network downtime at relay.straelo.com results in connection error (no fallback — this is an offline computation endpoint so availability depends on the host)"],"whenToPreferThis":"Use this endpoint when an AI agent needs a safe, offline, deterministic safety gate before deciding whether to authorize or sign an x402 micropayment. It is specifically designed for the x402 v2 protocol and returns a structured PAY/REVIEW/DO_NOT_PAY verdict with mismatch details — making it far more useful than generic validation logic for crypto payment flows. Prefer it over manual intent comparison when you need auditable fingerprinting, material-change detection against prior snapshots, or policy enforcement on asset, network, destination, and amount constraints. Do not use it if you need actual payment execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T18:33:57.608Z","isFirstParty":false,"canonicalSlug":"straelo-relay-x402-payment-preflight-decision-1b5b97cb"}