{"uid":"cap_PPM-WMGjKQ9X6i5G4QwjB","slug":"saferoute-post-transaction-verification-1d7782c4","name":"SafeRoute Post-Transaction Verification","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/post-tx-verify?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"intent":{"type":"object","required":["sender","recipient","sellToken","buyToken","sellAmount","minimumBuyAmount"],"properties":{"sender":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"buyToken":{"enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string"},"recipient":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"sellToken":{"enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string"},"sellAmount":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$"},"expectedTarget":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"minimumBuyAmount":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$"},"expectedBuyAmount":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$"},"expectedCalldataHash":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"}},"additionalProperties":false},"intentId":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":128,"minLength":16},"referralCode":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":64,"minLength":3},"sourceAgentId":{"type":"string","maxLength":128,"minLength":1},"transactionHash":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"}}},"responseSchema":{"type":"json","example":{"status":"ok","service":"safe_post_tx_verify"}},"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_bjg-DS0DcRYL5fPEj5t91","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":"Verifies and audits a completed Base DEX token swap transaction against the original swap intent, confirming execution correctness and payment safety.","exampleAgentPrompt":"Can you verify that my USDC-to-WETH swap actually executed correctly? The transaction hash is 0xabc123...def456, my intent ID is swap-agent-20240601-xyz99, and the original intent was to sell 500 USDC for at least 0.19 WETH from address 0xSenderAddress to 0xRecipientAddress.","exampleUseCases":[{"title":"Post-swap audit for DeFi agent","prompt":"My AI trading agent just executed a USDC to CBBTC swap on Base — can you verify the transaction 0xabc...789 matched the original intent? The seller was 0xAAA...111, recipient 0xBBB...222, selling 1000 USDC with a minimum buy of 0.011 CBBTC, intent ID is agent-swap-20240601-abc12."},{"title":"Slippage and recipient check after trade","prompt":"I just completed a WETH to USDC swap and want to make sure it didn't slip past my minimum and went to the right wallet. Transaction hash is 0xdef...456, intent ID trade-verify-20240610-xyz44, sender 0xCCC...333, recipient 0xDDD...444, sold 0.5 WETH expecting at least 1800 USDC."},{"title":"Automated settlement confirmation for agent fleet","prompt":"After our agent batch executed a VIRTUAL to USDC swap on Base, verify that transaction 0xfed...321 settled correctly against the original intent — intent ID is fleet-swap-20240615-batch01, source agent fleet-agent-7, sender 0xEEE...555, recipient 0xFFF...666, sold 2000 VIRTUAL for minimum 95 USDC."}],"resultDescription":"Returns a JSON object with a status field (e.g. 'ok') and a service identifier confirming the post-transaction verification completed. Indicates whether the executed transaction matches the original swap intent parameters including tokens, amounts, addresses, and calldata.","failureModes":["Invalid or malformed transaction hash returns validation error","Mismatched intent parameters (wrong tokens, amounts, or addresses) may return failed verification status","Intent ID not found or expired causes lookup failure","Transaction not yet confirmed on-chain may return pending or not-found error","Payment of 0.05 USDC required; missing payment header causes 402 response","Invalid sender or recipient Ethereum address format rejected by schema"],"whenToPreferThis":"Use this endpoint after executing a Base DEX token swap to confirm the transaction settled correctly against the original swap intent. Prefer this over generic blockchain explorers when you need structured, intent-aware verification that checks sell/buy tokens, amounts, addresses, and calldata hash in a single call. Ideal for AI agents that execute DeFi swaps autonomously and need programmatic post-trade confirmation before proceeding with downstream logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:35:58.156Z","isFirstParty":false,"canonicalSlug":"saferoute-post-transaction-verification-1d7782c4"}