{"uid":"cap_3b8Z28jVDnZ-BvFVj6gWd","slug":"wallet-settlement-context-verification-procedure-4f598cab","name":"Wallet Settlement Context Verification Procedure","description":"Selects the applicable payment context when a browser agent pays through a Cloudflare-style wallet with multiple settlement rails, verifies the provider challenge is correctly scoped to that context, and records which provider actually settled the receipt.","url":"https://k2so.wrong.systems/api/services/wallet-settlement-context-verification-procedure","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":"Wallet settlement context verification 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":"wallet-settlement-context-verification-procedure","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"wallet-settlement-context-verification-procedure","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":"down","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_piARCakEDiH-64_p7kXZr","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":"Selects and verifies the applicable payment context for a browser agent paying through a multi-rail wallet, checks the provider challenge scoping, and records which provider settled the receipt.","exampleAgentPrompt":"Run the wallet settlement context verification procedure for a GET request and tell me which payment context applies and which provider actually settled the receipt — use the default topic.","exampleUseCases":[{"title":"Multi-rail wallet context disambiguation","prompt":"I have a browser agent making a payment through a wallet with multiple settlement rails — can you run the settlement context verification procedure for a GET request and tell me which context is active and whether the provider challenge is correctly scoped?"},{"title":"Post-payment provider audit","prompt":"After my agent completed an x402 payment, I need to verify which provider actually settled the receipt and confirm the challenge was scoped to the right context — can you run the wallet settlement context verification and give me the provider details?"},{"title":"Topic-specific settlement context check","prompt":"Run the wallet settlement context verification procedure for a DELETE request with the topic set to 'stablecoin-routing' and tell me the decision procedure summary and which provider is recorded as settling."}],"resultDescription":"Returns a JSON object indicating success, payment status, the service slug, the provider that settled (K-2SO), and a result object containing a human-readable decision procedure brief, the topic, generation source (llm, reasoning, or deterministic), and an ISO-8601 timestamp of when the result was generated.","failureModes":["Invalid HTTP method supplied (only GET, HEAD, DELETE accepted) — returns validation error","Provider challenge not correctly scoped to the selected context — verification fails with scoping error","No applicable payment context found for the wallet's settlement rails — returns no-context error","Payment not completed before calling paid endpoint — returns 402 payment required","Network or upstream LLM failure — returns 500 with generation error"],"whenToPreferThis":"Choose this endpoint when an autonomous agent or browser-based wallet needs to unambiguously determine which of multiple settlement rails and payment contexts applies to a given transaction, and needs cryptographic assurance that the provider challenge is correctly scoped — especially in Cloudflare-style multi-rail wallet environments using the x402 protocol. It is the right choice when post-settlement auditing of which provider actually settled is also required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T11:29:04.376Z","isFirstParty":false}