{"uid":"cap_js4er6IDzplkT5UfyL5k3","slug":"saferoute-transaction-preflight-07fab590","name":"SafeRoute Transaction Preflight","description":"Workflow automation, Stripe and API integration repair, and x402 payment diagnostics. Choose a fixed scope and review it before payment.","url":"https://api.usesaferoute.com/v1/transaction-preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"intentId":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":128,"minLength":16},"transaction":{"type":"object","required":["from","to","data"],"properties":{"to":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"data":{"type":"string","pattern":"^0x[a-fA-F0-9]*$"},"from":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"type":"string","default":"0","pattern":"^\\d+$"}},"additionalProperties":false},"referralCode":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":64,"minLength":3},"sourceAgentId":{"type":"string","maxLength":128,"minLength":1}}},"responseSchema":{"type":"json","example":{"status":"ok","service":"safe_transaction_preflight"}},"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_mHUozoRMc8ehLshFH4oQp","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":"Validates and diagnoses an Ethereum/Base blockchain transaction before submission, checking for safety issues and payment flow problems.","exampleAgentPrompt":"Before I submit this Base chain transaction from 0xAbCd...1234 to 0x5678...EfAb with calldata 0xdeadbeef, can you run a SafeRoute preflight check to make sure it's safe and won't fail?","exampleUseCases":[{"title":"Pre-submission DeFi swap safety check","prompt":"I'm about to send a swap transaction on Base — from 0xAbc1...1111 to 0xDef2...2222 with data 0xa9059cbb — can you run a preflight to confirm it's safe before I sign it?"},{"title":"Diagnosing a failing x402 payment flow","prompt":"My x402 payment transaction keeps failing — the from address is 0x1111...aaaa, to is 0x2222...bbbb, and the calldata is 0x12345678. Can you do a SafeRoute preflight diagnostic to figure out what's wrong?"},{"title":"Agent workflow transaction validation","prompt":"Before my agent submits this smart contract call on Base (from 0xCafe...0001 to 0xBabe...0002, data 0xabcdef00, value 0), please run a SafeRoute preflight check and tell me if there are any issues."}],"resultDescription":"Returns a JSON object with a status field (e.g. 'ok') and a service identifier confirming the preflight completed, along with any diagnostic findings about the transaction's safety or potential failure modes.","failureModes":["Invalid Ethereum address format for 'from' or 'to' fields returns a validation error","Malformed hex calldata in 'data' field causes rejection","intentId too short (under 16 chars) or containing invalid characters fails schema validation","Network or RPC errors when simulating the transaction may cause timeouts","Transaction simulation failure indicating the on-chain call would revert"],"whenToPreferThis":"Use this endpoint when you need to validate a Base or Ethereum transaction before signing or broadcasting — especially for x402 payment flows, DeFi interactions, or any agent-initiated on-chain action where silent failure would be costly. Prefer this over generic RPC simulation when you also need structured diagnostics and a safety audit report.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:52:03.060Z","isFirstParty":false,"canonicalSlug":"saferoute-transaction-preflight-07fab590"}