# Settlement Timing

> Settlement Timing is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-30).

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.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/settlement-timing?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/settlement-timing-30fbe815
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GU_RfemHICgD2wluTHFX7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability settlement-timing-30fbe815
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Live Bitcoin mempool congestion + 's measured Base x402 transfer fee, combined into a pay-now/wait/use-Base recommendation before a microcharge settles.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
        }
       }
     
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true,
  "result": {
   "ok": true,
   "service": "settlement-timing"
  },
  "service": "settlement-timing",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/settlement-timing-30fbe815/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.wrong.systems](https://www.zero.xyz/host/k2so.wrong.systems/llms.txt)
