{"uid":"cap_djsiL4lbguocOUrS85BaD","slug":"x402-multi-rail-settlement-selection-decision-procedure-cc35dd9b","name":"x402 Multi-Rail Settlement Selection Decision Procedure","description":"Decision procedure for agent merchants choosing between Solana and Base settlement rails when an HTTP 402 challenge offers multiple options. Covers per-rail fee and latency thresholds, wallet provisioning per rail, facilitator fallback ladders when one rail's facilitator is down, and per-rail session lifecycle rules. Blunt procedure, not marketing.","url":"https://k2so.wrong.systems/api/services/x402-multi-rail-settlement-selection-when-an-age?utm_source=zero.xyz","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":"x402 multi-rail settlement selection standard 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":"x402-multi-rail-settlement-selection-when-an-age","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"x402-multi-rail-settlement-selection-when-an-age","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_7eFqtqHl7FK5_BYbuDRex","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":"Returns a paid AI-generated decision procedure brief explaining how an agent should select between multiple x402 payment rails for settlement","exampleAgentPrompt":"I need a decision procedure for how to pick between multiple x402 settlement rails — give me the full reasoning brief an autonomous agent should follow when choosing which payment rail to use.","exampleUseCases":[{"title":"Multi-rail payment routing for agent wallet","prompt":"My agent wallet supports several x402 payment rails and I need a clear decision procedure it can follow to pick the best one for each transaction — can you get me that brief?"},{"title":"Onboarding new x402 merchant integration","prompt":"I'm building an x402 merchant agent and want a structured guide on how my agent should evaluate and select among available settlement rails before finalizing a payment."},{"title":"Auditing agent payment logic","prompt":"I want to review the standard decision procedure for x402 multi-rail settlement selection so I can check whether my agent's current payment logic is aligned with best practices."}],"resultDescription":"A JSON object containing a plain-prose decision procedure brief (120+ words) generated by an LLM, identifying the topic as 'x402-multi-rail-settlement-selection', the model used (e.g. deepseek/deepseek-v4-flash-0731), the generation source (llm, reasoning, or deterministic), an ISO-8601 generatedAt timestamp, the provider name K-2SO, and boolean flags confirming the call was paid and successful.","failureModes":["HTTP 402 returned if no valid x402 payment signature is provided — agent must settle exact $0.002 USDC and retry with PAYMENT-SIGNATURE header","Invalid or missing payment signature returns payment-required error","LLM generation failure may return ok:false with error detail in result","Malformed query parameters (e.g. invalid meta value) may cause schema validation error","Network or upstream LLM provider downtime causing generation failure"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs authoritative, up-to-date procedural guidance on choosing between multiple x402 payment rails at settlement time, especially when the agent lacks hardcoded logic for rail selection. Prefer this over static documentation when you need a narrative decision brief the agent can reason over directly. Best suited for agent orchestration layers that consume decision procedures as prompts or context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:38.258Z","isFirstParty":false,"canonicalSlug":"x402-multi-rail-settlement-selection-decision-procedure-cc35dd9b"}