{"uid":"cap_pSoG272Rmb51-N5-cZBs2","slug":"blockchain-money-map-x402-autonomous-spend-flight-recorder-e1da8edf","name":"Blockchain Money Map – x402 Autonomous Spend Flight Recorder","description":"Autonomous spend attempts need a black-box timeline that shows where the flow was safe, uncertain, failed, or completed.","url":"https://api.blockchainmoneymap.com/api/x402/x402-autonomous-spend-flight-recorder?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["analyze"]},"facts":{"type":"object","required":["events","policy_summary","final_status"],"properties":{"events":{"type":"array","maxItems":10},"spend_cap":{"type":"string","maxLength":500},"retry_count":{"type":"number"},"final_status":{"type":"string","maxLength":500},"receipt_hash":{"type":"string","pattern":"^sha256:[a-fA-F0-9]{64}$"},"policy_summary":{"type":"string","maxLength":500},"x402_request_id":{"type":"string","maxLength":500}},"additionalProperties":false},"policy":{"type":"object","additionalProperties":true},"reference_facts":{"type":"object","required":["events","policy_summary","final_status"],"properties":{"events":{"type":"array","maxItems":10},"spend_cap":{"type":"string","maxLength":500},"retry_count":{"type":"number"},"final_status":{"type":"string","maxLength":500},"receipt_hash":{"type":"string","pattern":"^sha256:[a-fA-F0-9]{64}$"},"policy_summary":{"type":"string","maxLength":500},"x402_request_id":{"type":"string","maxLength":500}},"additionalProperties":false}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-KZnfXIKpGTHmC7oFJhqr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes and records the facts of an x402 autonomous agent payment session, comparing current spend facts against reference facts and policy to produce a structured flight-recorder audit log.","exampleAgentPrompt":"Run a flight-recorder analysis on my x402 agent session — the policy summary was 'max 5 USDC per task', spend cap was '5 USDC', there were 3 payment events, retry count was 1, the final status was 'completed', and the receipt hash is sha256:aabbccdd...0011 — compare it against the same reference facts and tell me if it was policy-compliant.","exampleUseCases":[{"title":"Post-run compliance audit for payment agent","prompt":"My autonomous agent just finished an x402 payment run — policy summary was 'single approved vendor only', spend cap '2 USDC', 2 events occurred, 0 retries, final status 'success', receipt hash sha256:1234abcd...ef56. Run a flight-recorder analysis in analyze mode and compare it to the same reference facts to confirm everything was in-policy."},{"title":"Debugging a failed agent payment session","prompt":"My x402 agent hit a failure — final status was 'failed', there were 4 events, retry count was 3, spend cap '10 USDC', policy summary 'retry up to 3 times on network error', and the receipt hash is sha256:deadbeef...9900. Analyze these facts against the reference facts from the original session so I can see where it went off-track."},{"title":"Immutable audit log for a completed spend flow","prompt":"I need a flight-recorder record of an agent payment session for our audit trail — policy summary 'expense reimbursement under $1', spend cap '1 USDC', 1 payment event, 0 retries, final status 'settled', receipt hash sha256:cafebabe...1234. Please run the analyze mode and produce the structured audit output."}],"resultDescription":"A structured JSON audit report summarizing the analyzed x402 payment session, including policy compliance assessment, event sequence review, spend cap adherence, retry behavior, final status confirmation, and any discrepancies between the submitted facts and the reference facts.","failureModes":["Missing required fields (events, policy_summary, final_status) returns a validation error","Receipt hash not matching the expected sha256 pattern causes a schema rejection","mode field not set to 'analyze' returns an unsupported mode error","Malformed or oversized event arrays (>10 items) are rejected","Payment failure (402) if USDC balance is insufficient for the $0.01 fee"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to record and audit the facts of a completed or in-progress x402 autonomous payment session — especially when policy compliance, spend cap adherence, retry behavior, and receipt integrity need to be verified in a single structured call. Prefer it over generic blockchain lookup endpoints when the goal is a post-run flight-recorder audit rather than raw transaction status.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T06:32:47.201Z","isFirstParty":false,"canonicalSlug":"blockchain-money-map-x402-autonomous-spend-flight-recorder-e1da8edf"}