{"uid":"cap_GU_RfemHICgD2wluTHFX7","slug":"settlement-timing-30fbe815","name":"Settlement Timing","description":"Live Bitcoin mempool congestion + 's measured Base x402 transfer fee, combined into a pay-now/wait/use-Base recommendation before a microcharge settles.","url":"https://k2so.wrong.systems/api/services/settlement-timing?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)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Settlement Timing 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"},"score":{"type":"number"},"service":{"type":"string","description":"Service slug"},"summary":{"type":"string"},"evidence":{"type":"object"},"strengths":{"type":"array","items":{"type":"string"}},"confidence":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"riskFactors":{"type":"array","items":{"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,"service":"settlement-timing"},"service":"settlement-timing","provider":"K-2SO"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_toNlCBUhYwscQyX6HpuP2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a live pay-now/wait/use-Base recommendation by combining Bitcoin mempool congestion data with current x402 Base transfer fees for microcharge settlement decisions.","exampleAgentPrompt":"Before I submit this micropayment, check the current Bitcoin mempool congestion and Base x402 fee — should I pay right now, wait for cheaper fees, or switch to Base for settlement?","exampleUseCases":[{"title":"Microcharge timing before checkout","prompt":"I'm about to trigger a $0.01 x402 microcharge — check whether Bitcoin mempool congestion and the current Base fee make it better to pay immediately or hold off for a few blocks."},{"title":"Autonomous agent payment routing decision","prompt":"My agent needs to settle a small payment — pull the live mempool and Base x402 fee data and tell me whether to route through Base now or wait for Bitcoin fees to drop."},{"title":"Cost-sensitive micropayment scheduling","prompt":"I'm running a batch of microcharges and want to minimize fees — what does current Bitcoin mempool congestion and the Base x402 transfer fee say about whether to go now or wait?"}],"resultDescription":"Returns a structured JSON object with an overall score, a summary recommendation (pay-now, wait, or use-Base), confidence level, evidence object with mempool and fee data, risk factors array, strengths array, and an ISO-8601 generatedAt timestamp. Includes a paid boolean and provider identification.","failureModes":["Mempool data unavailable — upstream Bitcoin node or mempool API unreachable","Base fee oracle offline — cannot retrieve current x402 transfer fee","Payment not received — 402 response requiring x402 payment before data is returned","Invalid query parameter for meta flag — must be '0' or '1'","Service returns ok:false with handler error if internal logic fails"],"whenToPreferThis":"Choose this endpoint when an agent or user needs a real-time, opinionated recommendation on whether to settle a microcharge immediately via Bitcoin or Base x402, factoring in live mempool congestion and current Base transfer fees. It is particularly useful before committing to time-sensitive or cost-sensitive micropayments where the optimal settlement path is unclear. Prefer this over manually checking mempool.space or Base fee trackers separately when you need a single combined recommendation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:06:57.943Z","isFirstParty":false,"canonicalSlug":"settlement-timing-30fbe815"}