{"uid":"cap_qbMYY4xlPOWJSADNozrPd","slug":"multi-rail-x402-payment-feasibility-routing-procedure-7125cbef","name":"Multi-Rail x402 Payment Feasibility Routing Procedure","description":"Machine-readable decision procedure for multi-rail x402 payment routing. Inputs: payment amount in USDC, payer spending policy (per-call cap, daily budget, allow-listed payees), candidate rails with their fee schedules and settlement latencies (Base x402, XRPL facilitator, Algorand, regulated banking rails). Outputs: per-rail feasibility verdict (settles, blocked-by-cap, not-allow-listed, rail-unavailable), total cost per rail including fee, settlement speed class, a ranked recommendation, and","url":"https://k2so.wrong.systems/api/services/multi-rail-x402-payment-feasibility-routing-give","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Multi-rail x402 payment feasibility routing procedure paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"multi-rail-x402-payment-feasibility-routing-give","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"multi-rail-x402-payment-feasibility-routing-give","provider":"K-2SO"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kB-4sp_TfM1_u_pccZgvR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates and ranks candidate payment rails (Base x402, XRPL, Algorand, banking) for a given USDC payment amount and payer policy, returning per-rail feasibility verdicts, costs, and a ranked recommendation.","exampleAgentPrompt":"I need to send 0.15 USDC to a payee — check which of Base x402, XRPL, and Algorand rails are feasible given my per-call cap of 0.20 USDC and a daily budget of 5 USDC, and tell me which one you'd recommend based on lowest total cost and fastest settlement.","exampleUseCases":[{"title":"Micropayment rail selection for API billing","prompt":"I'm about to make a 0.002 USDC per-call payment to an API — given my per-call cap of 0.01 USDC, a daily budget of 1 USDC, and rails Base x402, XRPL, and Algorand available, which rail is feasible and cheapest?"},{"title":"Policy compliance check before agent spend","prompt":"Before my agent sends a 0.50 USDC payment to payee 0xABC123, can you run a feasibility check across all available payment rails and tell me if any are blocked by my allowlist or daily budget of 2 USDC?"},{"title":"Settlement speed comparison for time-sensitive payment","prompt":"I need to pay 1.00 USDC and it's time-sensitive — rank all available rails by settlement speed and tell me which ones are feasible given a per-call cap of 2 USDC and no daily budget restriction."}],"resultDescription":"Returns a structured decision object with: per-rail feasibility verdicts (settles, blocked-by-cap, not-allow-listed, rail-unavailable), total cost per rail including fees, settlement speed class for each rail, a ranked recommendation, and a human-readable decision procedure prose brief for agents.","failureModes":["Payment amount exceeds per-call cap — rail returns blocked-by-cap verdict","Payee not on allowlist — rail returns not-allow-listed verdict","Rail unavailable or unreachable — rail returns rail-unavailable verdict","Daily budget exhausted — all rails may return blocked-by-cap","Missing or malformed input parameters — returns error or incomplete feasibility matrix","Payment insufficient to cover service fee ($0.002 USDC) — 402 response before result is returned"],"whenToPreferThis":"Use this endpoint when an autonomous agent or operator needs to programmatically select the optimal payment rail for a USDC transaction while enforcing spending policy constraints (caps, budgets, allowlists). Prefer it over manual rail selection when multiple rails (Base x402, XRPL, Algorand, banking) are available and fee/latency tradeoffs matter, or when policy compliance must be verified before committing a payment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:07:11.368Z","isFirstParty":false}