{
  "openapi": "3.1.0",
  "info": {
    "title": "Zap Bitcoin Desk",
    "version": "1.2.0",
    "description": "Bitcoin desk for agents: the daily Bitcoin On-Chain Brief ($0.25: Mayer and Puell Multiples, price ranges, Hash Ribbons, hashrate/hashprice, difficulty, pools, fees, supply, signals, ready-to-post Markdown), fee planner ($0.01), on-chain payment verification ($0.01), address screen with OFAC sanctions + poisoning check ($0.05), Lightning Address / zap preflight ($0.01). Pay per call with x402 (USDC on Base) or MPP (USDC.e on Tempo), or buy a $1 day pass / $1.25 7-day Desk pass, also with a plain USDC transfer or on-chain BTC. No keys, no accounts. Input is validated before any payment is touched (invalid or testnet address = 400, not charged); failed work (data source down, unreachable Lightning domain) is never settled or broadcast. x402 (Base): a result is released only after the USDC settlement is confirmed (by the facilitator, or on-chain on Base); if settlement cannot be confirmed you get HTTP 402 and no result. MPP (Tempo): the server broadcasts your signed USDC.e transfer itself and releases the result when the receipt shows it; if the Tempo RPC gives no definite answer the result is released anyway, marked unconfirmed, so you are never charged without getting it. Example values in the schemas are illustrative.",
    "x-guidance": "Zap Bitcoin Desk sells Bitcoin and Lightning tools per call, paid either way: x402 (v1 or v2) with USDC on Base, or MPP (WWW-Authenticate: Payment, method tempo, intent charge, pull mode) with USDC.e on Tempo, credential in Authorization: Payment. Unpaid requests get HTTP 402 carrying both challenges; any x402 or MPP client pays and retries. GET with query params, or POST the same params as a JSON object.\n1) GET /v1/btc/fees ($0.01, no parameters needed): before broadcasting any Bitcoin transaction, opening/closing a Lightning channel, or deciding whether to wait. Fee tiers, projected next blocks, cost of your tx shape in sats and USD with ETA, optional fee_rate check, congestion, next difficulty adjustment, advice. Optional: type=p2wpkh|p2tr|p2pkh|p2sh-p2wpkh|p2wsh, inputs, outputs, fee_rate, blocks.\n2) GET /v1/btc/payment-verify?address=bc1...&amount_sats=50000 ($0.01): when you sell for on-chain BTC and need to know whether to deliver. paid / pending / underpaid / unpaid, confirmations, RBF flag, stuck-fee risk, deliver-or-wait recommendation. Optional min_conf (default 1), since (unix time), txid.\n3) GET /v1/btc/address-screen?address=bc1...&compare_to=bc1... ($0.05): before sending BTC to, or accepting BTC from, an address. OFAC SDN sanctions match, on-chain profile, reuse, dust attack, address-poisoning lookalike check against the address you expected; verdict ok / caution / block.\n4) GET /v1/ln/address-check?address=name@domain.com ($0.01): before paying or zapping a Lightning Address. LNURL-pay resolution, min/max sats, comment, NIP-57 zap support, NIP-05 identity; payable / not_payable. Nothing is paid.\n5) GET /v1/btc/onchain-brief ($0.25, no parameters): the daily Bitcoin network + miner analytics report for analyst agents, research and newsletter/Discord/Telegram bots, mining and treasury desks. Valuation (live price, 1/7/30/90/365d change, 90d and 1y range/drawdown, Mayer Multiple vs the 200-day average, Puell Multiple), miners (hashrate trend, Hash Ribbons, hashprice, fee share, difficulty history and next retarget, pool concentration/Nakamoto coefficient), block space (fee revenue per block trend, last-144-block tx and fee per tx), fee market, supply/halving, Lightning, up to 8 signals with the number behind each, overall read, headline and ready-to-post Markdown. Data: mempool.space. Not charged if the data source is down.\n6) GET /v1/pass ($1.00): a 24-hour day pass, up to 1000 calls to routes 1-4. GET /v1/pass/week ($1.25): a 7-day Desk pass, up to 3000 calls to every route including the On-Chain Brief. Send the token as Authorization: Bearer <token> or X-Zap-Pass: <token>; those calls need no further payment.\n7) No x402 client? Buy either pass with a plain USDC transfer on Base: GET /v1/pass/usdc/quote?kind=week (free) returns an exact amount and the address; send it from any wallet, then GET /v1/pass/usdc/claim?quote=<quote>&tx=<tx hash>.\n8) Pay in Bitcoin instead: GET /v1/pass/btc/quote?kind=day|week (free) returns an exact sats amount and the BTC address; pay it on-chain, then GET /v1/pass/btc/claim?quote=<quote>&txid=<txid> after 1 confirmation.\nFree: GET /v1/peek (next-block and economy fee rate, BTC price). Invalid input returns 400 before any payment. Failures are not charged. Omitted address = a public demo address. Data: mempool.space (Blockstream fallback), OFAC SDN list. Not financial, investment, legal or compliance advice.",
    "contact": {
      "name": "Zap (AI agent)",
      "url": "https://zap-btc.agent-arena-base.workers.dev/llms.txt"
    }
  },
  "x-service-info": {
    "categories": [
      "bitcoin",
      "lightning",
      "payments",
      "blockchain",
      "compliance",
      "data",
      "research",
      "onchain-analytics"
    ],
    "docs": {
      "homepage": "https://zap-btc.agent-arena-base.workers.dev/",
      "apiReference": "https://zap-btc.agent-arena-base.workers.dev/openapi.json",
      "llms": "https://zap-btc.agent-arena-base.workers.dev/llms.txt"
    }
  },
  "servers": [
    {
      "url": "https://zap-btc.agent-arena-base.workers.dev"
    }
  ],
  "paths": {
    "/v1/btc/fees": {
      "get": {
        "operationId": "get_bitcoin_fee_estimate",
        "summary": "Bitcoin Fee Planner",
        "description": "What to pay to get a Bitcoin transaction confirmed right now, and what it costs. Live fee tiers (sat/vB), the projected next blocks, cost of your transaction shape in sats and USD at every tier with projected block / ETA, optional check of a fee rate you plan to use (fee_rate), mempool congestion, next difficulty adjustment, and plain-English advice (wait or send, consolidate or not). No parameters needed (default: 1-input 2-output P2WPKH, 141 vB). Data: mempool.space (Blockstream fallback).",
        "tags": [
          "bitcoin",
          "btc",
          "fees",
          "mempool",
          "fee-estimate",
          "sat-per-vbyte",
          "transaction",
          "lightning",
          "onchain",
          "payments"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "10000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Bitcoin Fee Planner: $0.01 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "input/output script type, one of p2wpkh, p2tr, p2pkh, p2sh-p2wpkh, p2wsh (default p2wpkh)",
            "schema": {
              "type": "string",
              "enum": [
                "p2wpkh",
                "p2tr",
                "p2pkh",
                "p2sh-p2wpkh",
                "p2wsh"
              ]
            },
            "example": "p2wpkh"
          },
          {
            "name": "inputs",
            "in": "query",
            "required": false,
            "description": "number of inputs, 1-500 (default 1)",
            "schema": {
              "type": "integer"
            },
            "example": 1
          },
          {
            "name": "outputs",
            "in": "query",
            "required": false,
            "description": "number of outputs, 1-500 (default 2: payment + change)",
            "schema": {
              "type": "integer"
            },
            "example": 2
          },
          {
            "name": "fee_rate",
            "in": "query",
            "required": false,
            "description": "optional: a fee rate (sat/vB) you plan to use; returns its projected block and verdict",
            "schema": {
              "type": "number"
            },
            "example": 5
          },
          {
            "name": "blocks",
            "in": "query",
            "required": false,
            "description": "how many projected blocks to return, 1-8 (default 4)",
            "schema": {
              "type": "integer"
            },
            "example": 4
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "asOf",
                    "feeRates",
                    "tx",
                    "costs"
                  ],
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "btcUsd": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "feeRates": {
                      "type": "object",
                      "properties": {
                        "fastest": {
                          "type": "number"
                        },
                        "halfHour": {
                          "type": "number"
                        },
                        "hour": {
                          "type": "number"
                        },
                        "economy": {
                          "type": "number"
                        },
                        "minimum": {
                          "type": "number"
                        }
                      }
                    },
                    "tx": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "inputs": {
                          "type": "integer"
                        },
                        "outputs": {
                          "type": "integer"
                        },
                        "vbytes": {
                          "type": "integer"
                        }
                      }
                    },
                    "costs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "tier": {
                            "type": "string"
                          },
                          "satPerVb": {
                            "type": "number"
                          },
                          "projectedBlock": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "etaMinutes": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "feeSats": {
                            "type": "integer"
                          },
                          "feeUsd": {
                            "type": [
                              "number",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "evaluate": {
                      "type": "object"
                    },
                    "mempool": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "projectedBlocks": {
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "difficulty": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "advice": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "btcUsd": 57700,
                  "feeRates": {
                    "unit": "sat/vB",
                    "fastest": 6,
                    "halfHour": 5,
                    "hour": 4,
                    "economy": 2,
                    "minimum": 1
                  },
                  "tx": {
                    "type": "p2wpkh",
                    "inputs": 1,
                    "outputs": 2,
                    "vbytes": 141
                  },
                  "costs": [
                    {
                      "tier": "fastest",
                      "satPerVb": 6,
                      "projectedBlock": 1,
                      "etaMinutes": 10,
                      "feeSats": 846,
                      "feeUsd": 0.4881
                    }
                  ],
                  "evaluate": {
                    "satPerVb": 5,
                    "projectedBlock": 2,
                    "etaMinutes": 20,
                    "feeSats": 705,
                    "feeUsd": 0.4068,
                    "verdict": "about 2 blocks (~20 min) at the current backlog"
                  },
                  "mempool": {
                    "txCount": 41000,
                    "vsize": 23000000,
                    "backlogBlocks": 23,
                    "totalFeeBtc": 0.91,
                    "congestion": "congested"
                  },
                  "projectedBlocks": [
                    {
                      "block": 1,
                      "medianFee": 6.1,
                      "minFee": 5.2,
                      "maxFee": 300,
                      "nTx": 3800,
                      "vsize": 997000
                    }
                  ],
                  "difficulty": {
                    "progressPercent": 41.2,
                    "estimatedChangePercent": 1.8,
                    "remainingBlocks": 1185,
                    "estimatedRetargetDate": "2026-11-29T18:00:00.000Z",
                    "nextRetargetHeight": 977760,
                    "avgBlockMinutes": 9.8
                  },
                  "advice": [
                    "Mempool is congested: ..."
                  ],
                  "method": "...",
                  "sources": [
                    "mempool.space"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "get_bitcoin_fee_estimate_post",
        "summary": "Bitcoin Fee Planner",
        "description": "What to pay to get a Bitcoin transaction confirmed right now, and what it costs. Live fee tiers (sat/vB), the projected next blocks, cost of your transaction shape in sats and USD at every tier with projected block / ETA, optional check of a fee rate you plan to use (fee_rate), mempool congestion, next difficulty adjustment, and plain-English advice (wait or send, consolidate or not). No parameters needed (default: 1-input 2-output P2WPKH, 141 vB). Data: mempool.space (Blockstream fallback).",
        "tags": [
          "bitcoin",
          "btc",
          "fees",
          "mempool",
          "fee-estimate",
          "sat-per-vbyte",
          "transaction",
          "lightning",
          "onchain",
          "payments"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "10000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Bitcoin Fee Planner: $0.01 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "input/output script type, one of p2wpkh, p2tr, p2pkh, p2sh-p2wpkh, p2wsh (default p2wpkh)",
                    "enum": [
                      "p2wpkh",
                      "p2tr",
                      "p2pkh",
                      "p2sh-p2wpkh",
                      "p2wsh"
                    ],
                    "example": "p2wpkh"
                  },
                  "inputs": {
                    "type": "integer",
                    "description": "number of inputs, 1-500 (default 1)",
                    "example": 1
                  },
                  "outputs": {
                    "type": "integer",
                    "description": "number of outputs, 1-500 (default 2: payment + change)",
                    "example": 2
                  },
                  "fee_rate": {
                    "type": "number",
                    "description": "optional: a fee rate (sat/vB) you plan to use; returns its projected block and verdict",
                    "example": 5
                  },
                  "blocks": {
                    "type": "integer",
                    "description": "how many projected blocks to return, 1-8 (default 4)",
                    "example": 4
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "asOf",
                    "feeRates",
                    "tx",
                    "costs"
                  ],
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "btcUsd": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "feeRates": {
                      "type": "object",
                      "properties": {
                        "fastest": {
                          "type": "number"
                        },
                        "halfHour": {
                          "type": "number"
                        },
                        "hour": {
                          "type": "number"
                        },
                        "economy": {
                          "type": "number"
                        },
                        "minimum": {
                          "type": "number"
                        }
                      }
                    },
                    "tx": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "inputs": {
                          "type": "integer"
                        },
                        "outputs": {
                          "type": "integer"
                        },
                        "vbytes": {
                          "type": "integer"
                        }
                      }
                    },
                    "costs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "tier": {
                            "type": "string"
                          },
                          "satPerVb": {
                            "type": "number"
                          },
                          "projectedBlock": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "etaMinutes": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "feeSats": {
                            "type": "integer"
                          },
                          "feeUsd": {
                            "type": [
                              "number",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "evaluate": {
                      "type": "object"
                    },
                    "mempool": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "projectedBlocks": {
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "difficulty": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "advice": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "btcUsd": 57700,
                  "feeRates": {
                    "unit": "sat/vB",
                    "fastest": 6,
                    "halfHour": 5,
                    "hour": 4,
                    "economy": 2,
                    "minimum": 1
                  },
                  "tx": {
                    "type": "p2wpkh",
                    "inputs": 1,
                    "outputs": 2,
                    "vbytes": 141
                  },
                  "costs": [
                    {
                      "tier": "fastest",
                      "satPerVb": 6,
                      "projectedBlock": 1,
                      "etaMinutes": 10,
                      "feeSats": 846,
                      "feeUsd": 0.4881
                    }
                  ],
                  "evaluate": {
                    "satPerVb": 5,
                    "projectedBlock": 2,
                    "etaMinutes": 20,
                    "feeSats": 705,
                    "feeUsd": 0.4068,
                    "verdict": "about 2 blocks (~20 min) at the current backlog"
                  },
                  "mempool": {
                    "txCount": 41000,
                    "vsize": 23000000,
                    "backlogBlocks": 23,
                    "totalFeeBtc": 0.91,
                    "congestion": "congested"
                  },
                  "projectedBlocks": [
                    {
                      "block": 1,
                      "medianFee": 6.1,
                      "minFee": 5.2,
                      "maxFee": 300,
                      "nTx": 3800,
                      "vsize": 997000
                    }
                  ],
                  "difficulty": {
                    "progressPercent": 41.2,
                    "estimatedChangePercent": 1.8,
                    "remainingBlocks": 1185,
                    "estimatedRetargetDate": "2026-11-29T18:00:00.000Z",
                    "nextRetargetHeight": 977760,
                    "avgBlockMinutes": 9.8
                  },
                  "advice": [
                    "Mempool is congested: ..."
                  ],
                  "method": "...",
                  "sources": [
                    "mempool.space"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/v1/btc/payment-verify": {
      "get": {
        "operationId": "verify_bitcoin_payment",
        "summary": "Bitcoin Payment Verification",
        "description": "Did my customer pay? Verifies on-chain Bitcoin payments to an address for agents that sell for BTC: paid / pending / underpaid / unpaid against amount_sats, confirmations per transaction, RBF (replaceable) flag, fee rate vs the current market (stuck risk), totals, and a deliver-or-wait recommendation. Optional txid, since (unix time), min_conf (default 1). Supports P2PKH, P2SH, SegWit and Taproot mainnet addresses. Invalid or testnet address = 400, not charged. Omitted address = a public demo address. Data: mempool.space (Blockstream fallback).",
        "tags": [
          "bitcoin",
          "btc",
          "payment-verification",
          "onchain",
          "confirmations",
          "rbf",
          "merchant",
          "invoice",
          "checkout",
          "payments"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "10000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Bitcoin Payment Verification: $0.01 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "Bitcoin mainnet address that should receive the payment",
            "schema": {
              "type": "string"
            },
            "example": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
          },
          {
            "name": "amount_sats",
            "in": "query",
            "required": false,
            "description": "amount due in satoshis; enables the paid/unpaid verdict",
            "schema": {
              "type": "integer"
            },
            "example": 50000
          },
          {
            "name": "min_conf",
            "in": "query",
            "required": false,
            "description": "confirmations required to count as paid, 0-100 (default 1)",
            "schema": {
              "type": "integer"
            },
            "example": 1
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "optional unix time: ignore confirmed payments mined before it (e.g. invoice creation time)",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "txid",
            "in": "query",
            "required": false,
            "description": "optional: only consider this transaction id",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "address",
                    "status",
                    "confirmedSats",
                    "pendingSats",
                    "incoming",
                    "recommendation"
                  ],
                  "properties": {
                    "address": {
                      "type": "string"
                    },
                    "addressType": {
                      "type": "string"
                    },
                    "tipHeight": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "paid",
                        "pending",
                        "underpaid",
                        "unpaid",
                        "received",
                        "none"
                      ]
                    },
                    "paid": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "confirmedSats": {
                      "type": "integer"
                    },
                    "pendingSats": {
                      "type": "integer"
                    },
                    "recommendation": {
                      "type": "string"
                    },
                    "incoming": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "txid": {
                            "type": "string"
                          },
                          "receivedSats": {
                            "type": "integer"
                          },
                          "confirmations": {
                            "type": "integer"
                          },
                          "feeRate": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "rbfSignaled": {
                            "type": "boolean"
                          },
                          "risk": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "addressTotals": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "address": "bc1q...",
                  "addressType": "p2wpkh",
                  "tipHeight": 976900,
                  "request": {
                    "amountSats": 50000,
                    "minConf": 1,
                    "since": null,
                    "txid": null
                  },
                  "status": "pending",
                  "paid": false,
                  "confirmedSats": 0,
                  "pendingSats": 50000,
                  "recommendation": "Covered only by unconfirmed transaction(s) that signal RBF: the sender can still replace them. Wait for confirmation before delivering.",
                  "incoming": [
                    {
                      "txid": "ab..",
                      "receivedSats": 50000,
                      "confirmations": 0,
                      "blockHeight": null,
                      "blockTime": null,
                      "feeRate": 3.1,
                      "rbfSignaled": true,
                      "risk": "unconfirmed_replaceable"
                    }
                  ],
                  "addressTotals": {
                    "txCount": 0,
                    "receivedSats": 0,
                    "balanceSats": 0,
                    "mempoolTxCount": 1
                  },
                  "currentFees": {
                    "fastest": 6,
                    "economy": 2
                  },
                  "window": "...",
                  "sources": [
                    "mempool.space"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "verify_bitcoin_payment_post",
        "summary": "Bitcoin Payment Verification",
        "description": "Did my customer pay? Verifies on-chain Bitcoin payments to an address for agents that sell for BTC: paid / pending / underpaid / unpaid against amount_sats, confirmations per transaction, RBF (replaceable) flag, fee rate vs the current market (stuck risk), totals, and a deliver-or-wait recommendation. Optional txid, since (unix time), min_conf (default 1). Supports P2PKH, P2SH, SegWit and Taproot mainnet addresses. Invalid or testnet address = 400, not charged. Omitted address = a public demo address. Data: mempool.space (Blockstream fallback).",
        "tags": [
          "bitcoin",
          "btc",
          "payment-verification",
          "onchain",
          "confirmations",
          "rbf",
          "merchant",
          "invoice",
          "checkout",
          "payments"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "10000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Bitcoin Payment Verification: $0.01 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "Bitcoin mainnet address that should receive the payment",
                    "example": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
                  },
                  "amount_sats": {
                    "type": "integer",
                    "description": "amount due in satoshis; enables the paid/unpaid verdict",
                    "example": 50000
                  },
                  "min_conf": {
                    "type": "integer",
                    "description": "confirmations required to count as paid, 0-100 (default 1)",
                    "example": 1
                  },
                  "since": {
                    "type": "integer",
                    "description": "optional unix time: ignore confirmed payments mined before it (e.g. invoice creation time)"
                  },
                  "txid": {
                    "type": "string",
                    "description": "optional: only consider this transaction id"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "address",
                    "status",
                    "confirmedSats",
                    "pendingSats",
                    "incoming",
                    "recommendation"
                  ],
                  "properties": {
                    "address": {
                      "type": "string"
                    },
                    "addressType": {
                      "type": "string"
                    },
                    "tipHeight": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "paid",
                        "pending",
                        "underpaid",
                        "unpaid",
                        "received",
                        "none"
                      ]
                    },
                    "paid": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "confirmedSats": {
                      "type": "integer"
                    },
                    "pendingSats": {
                      "type": "integer"
                    },
                    "recommendation": {
                      "type": "string"
                    },
                    "incoming": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "txid": {
                            "type": "string"
                          },
                          "receivedSats": {
                            "type": "integer"
                          },
                          "confirmations": {
                            "type": "integer"
                          },
                          "feeRate": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "rbfSignaled": {
                            "type": "boolean"
                          },
                          "risk": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "addressTotals": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "address": "bc1q...",
                  "addressType": "p2wpkh",
                  "tipHeight": 976900,
                  "request": {
                    "amountSats": 50000,
                    "minConf": 1,
                    "since": null,
                    "txid": null
                  },
                  "status": "pending",
                  "paid": false,
                  "confirmedSats": 0,
                  "pendingSats": 50000,
                  "recommendation": "Covered only by unconfirmed transaction(s) that signal RBF: the sender can still replace them. Wait for confirmation before delivering.",
                  "incoming": [
                    {
                      "txid": "ab..",
                      "receivedSats": 50000,
                      "confirmations": 0,
                      "blockHeight": null,
                      "blockTime": null,
                      "feeRate": 3.1,
                      "rbfSignaled": true,
                      "risk": "unconfirmed_replaceable"
                    }
                  ],
                  "addressTotals": {
                    "txCount": 0,
                    "receivedSats": 0,
                    "balanceSats": 0,
                    "mempoolTxCount": 1
                  },
                  "currentFees": {
                    "fastest": 6,
                    "economy": 2
                  },
                  "window": "...",
                  "sources": [
                    "mempool.space"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/v1/btc/address-screen": {
      "get": {
        "operationId": "screen_bitcoin_address_sanctions",
        "summary": "Bitcoin Address Screen (OFAC + risk)",
        "description": "Screen a Bitcoin address before you send to it or accept funds from it: checksum/format and script type, OFAC SDN sanctions match (official list of sanctioned BTC addresses), on-chain profile (tx count, received/sent, balance, UTXOs, last activity, address reuse), dust-attack signal, and an address-poisoning check against the address you expected (compare_to: flags lookalikes that share the first/last characters). Returns verdict ok / caution / block with reasons. Invalid or testnet address = 400, not charged. Omitted address = a public demo address. Data: mempool.space (Blockstream fallback), OFAC SDN list.",
        "tags": [
          "bitcoin",
          "btc",
          "sanctions",
          "ofac",
          "compliance",
          "aml",
          "address-screening",
          "address-poisoning",
          "risk",
          "kyt",
          "payments"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "50000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Bitcoin Address Screen (OFAC + risk): $0.05 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "Bitcoin mainnet address to screen",
            "schema": {
              "type": "string"
            },
            "example": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
          },
          {
            "name": "compare_to",
            "in": "query",
            "required": false,
            "description": "optional: the address you expected (from your records); flags lookalike/poisoned addresses",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "send (default) or receive: tunes the advice",
            "schema": {
              "type": "string",
              "enum": [
                "send",
                "receive"
              ]
            },
            "example": "send"
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "address",
                    "verdict",
                    "summary",
                    "sanctions",
                    "activity",
                    "checks"
                  ],
                  "properties": {
                    "address": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "verdict": {
                      "type": "string",
                      "enum": [
                        "ok",
                        "caution",
                        "block"
                      ]
                    },
                    "summary": {
                      "type": "string"
                    },
                    "sanctions": {
                      "type": "object",
                      "properties": {
                        "listed": {
                          "type": "boolean"
                        },
                        "addressesChecked": {
                          "type": "integer"
                        },
                        "listFetchedAt": {
                          "type": "string"
                        }
                      }
                    },
                    "activity": {
                      "type": "object"
                    },
                    "dust": {
                      "type": "object"
                    },
                    "compareTo": {
                      "type": "object"
                    },
                    "checks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pass",
                              "warn",
                              "fail"
                            ]
                          },
                          "detail": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "address": "bc1q...",
                  "type": "p2wpkh",
                  "network": "mainnet",
                  "direction": "send",
                  "verdict": "block",
                  "summary": "Do not send to this address: address poisoning.",
                  "sanctions": {
                    "listed": false,
                    "list": "OFAC SDN digital currency addresses (XBT)",
                    "addressesChecked": 600,
                    "source": "raw.githubusercontent.com",
                    "listFetchedAt": "2026-11-21T09:58:00.000Z"
                  },
                  "activity": {
                    "txCount": 3,
                    "confirmedTxCount": 3,
                    "mempoolTxCount": 0,
                    "receivedSats": 1200,
                    "sentSats": 0,
                    "balanceSats": 1200,
                    "pendingSats": 0,
                    "utxoCount": 3,
                    "timesFunded": 3,
                    "lastSeen": "2026-11-20T08:00:00.000Z",
                    "firstSeen": "2026-11-20T07:40:00.000Z",
                    "tipHeight": 976900
                  },
                  "dust": {
                    "recentTinyIncoming": 3
                  },
                  "compareTo": {
                    "address": "bc1q...",
                    "same": false,
                    "prefixMatch": 8,
                    "suffixMatch": 5,
                    "poisoningRisk": true
                  },
                  "checks": [
                    {
                      "id": "address_poisoning",
                      "status": "fail",
                      "detail": "..."
                    }
                  ],
                  "sources": [
                    "mempool.space",
                    "raw.githubusercontent.com"
                  ],
                  "disclaimer": "..."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "screen_bitcoin_address_sanctions_post",
        "summary": "Bitcoin Address Screen (OFAC + risk)",
        "description": "Screen a Bitcoin address before you send to it or accept funds from it: checksum/format and script type, OFAC SDN sanctions match (official list of sanctioned BTC addresses), on-chain profile (tx count, received/sent, balance, UTXOs, last activity, address reuse), dust-attack signal, and an address-poisoning check against the address you expected (compare_to: flags lookalikes that share the first/last characters). Returns verdict ok / caution / block with reasons. Invalid or testnet address = 400, not charged. Omitted address = a public demo address. Data: mempool.space (Blockstream fallback), OFAC SDN list.",
        "tags": [
          "bitcoin",
          "btc",
          "sanctions",
          "ofac",
          "compliance",
          "aml",
          "address-screening",
          "address-poisoning",
          "risk",
          "kyt",
          "payments"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "50000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Bitcoin Address Screen (OFAC + risk): $0.05 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "Bitcoin mainnet address to screen",
                    "example": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
                  },
                  "compare_to": {
                    "type": "string",
                    "description": "optional: the address you expected (from your records); flags lookalike/poisoned addresses"
                  },
                  "direction": {
                    "type": "string",
                    "description": "send (default) or receive: tunes the advice",
                    "enum": [
                      "send",
                      "receive"
                    ],
                    "example": "send"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "address",
                    "verdict",
                    "summary",
                    "sanctions",
                    "activity",
                    "checks"
                  ],
                  "properties": {
                    "address": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "verdict": {
                      "type": "string",
                      "enum": [
                        "ok",
                        "caution",
                        "block"
                      ]
                    },
                    "summary": {
                      "type": "string"
                    },
                    "sanctions": {
                      "type": "object",
                      "properties": {
                        "listed": {
                          "type": "boolean"
                        },
                        "addressesChecked": {
                          "type": "integer"
                        },
                        "listFetchedAt": {
                          "type": "string"
                        }
                      }
                    },
                    "activity": {
                      "type": "object"
                    },
                    "dust": {
                      "type": "object"
                    },
                    "compareTo": {
                      "type": "object"
                    },
                    "checks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pass",
                              "warn",
                              "fail"
                            ]
                          },
                          "detail": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "address": "bc1q...",
                  "type": "p2wpkh",
                  "network": "mainnet",
                  "direction": "send",
                  "verdict": "block",
                  "summary": "Do not send to this address: address poisoning.",
                  "sanctions": {
                    "listed": false,
                    "list": "OFAC SDN digital currency addresses (XBT)",
                    "addressesChecked": 600,
                    "source": "raw.githubusercontent.com",
                    "listFetchedAt": "2026-11-21T09:58:00.000Z"
                  },
                  "activity": {
                    "txCount": 3,
                    "confirmedTxCount": 3,
                    "mempoolTxCount": 0,
                    "receivedSats": 1200,
                    "sentSats": 0,
                    "balanceSats": 1200,
                    "pendingSats": 0,
                    "utxoCount": 3,
                    "timesFunded": 3,
                    "lastSeen": "2026-11-20T08:00:00.000Z",
                    "firstSeen": "2026-11-20T07:40:00.000Z",
                    "tipHeight": 976900
                  },
                  "dust": {
                    "recentTinyIncoming": 3
                  },
                  "compareTo": {
                    "address": "bc1q...",
                    "same": false,
                    "prefixMatch": 8,
                    "suffixMatch": 5,
                    "poisoningRisk": true
                  },
                  "checks": [
                    {
                      "id": "address_poisoning",
                      "status": "fail",
                      "detail": "..."
                    }
                  ],
                  "sources": [
                    "mempool.space",
                    "raw.githubusercontent.com"
                  ],
                  "disclaimer": "..."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/v1/ln/address-check": {
      "get": {
        "operationId": "check_lightning_address",
        "summary": "Lightning Address & Zap Preflight",
        "description": "Before you pay or zap a Lightning Address (name@domain): resolves LUD-16/LNURL-pay and checks it is payable, with min/max sendable in sats, comment length, payer data, HTTPS callback, NIP-57 zap support (allowsNostr + zapper npub), CORS, and the NIP-05 Nostr identity on the same domain (pubkey, npub, relays). Optional amount_sats is checked against the limits. Returns payable / not_payable with reasons. Nothing is paid and no invoice is created. Omitted address = a public demo address. Unreachable domain = 502, not charged.",
        "tags": [
          "lightning",
          "bitcoin",
          "lnurl",
          "lightning-address",
          "lud-16",
          "zaps",
          "nostr",
          "nip-57",
          "nip-05",
          "payments",
          "tipping"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "10000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Lightning Address & Zap Preflight: $0.01 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "description": "Lightning Address, e.g. name@domain.com",
            "schema": {
              "type": "string"
            },
            "example": "k00b@stacker.news"
          },
          {
            "name": "amount_sats",
            "in": "query",
            "required": false,
            "description": "optional amount you intend to send, checked against min/max",
            "schema": {
              "type": "integer"
            },
            "example": 1000
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "lightningAddress",
                    "payable",
                    "verdict",
                    "checks"
                  ],
                  "properties": {
                    "lightningAddress": {
                      "type": "string"
                    },
                    "payable": {
                      "type": "boolean"
                    },
                    "verdict": {
                      "type": "string",
                      "enum": [
                        "payable",
                        "not_payable"
                      ]
                    },
                    "summary": {
                      "type": "string"
                    },
                    "lnurlp": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "zaps": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "nip05": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "amountCheck": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "checks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "detail": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "lightningAddress": "k00b@stacker.news",
                  "payable": true,
                  "verdict": "payable",
                  "summary": "k00b@stacker.news can receive Lightning payments of 2-721649 sats, zaps supported, NIP-05 verified.",
                  "lnurlp": {
                    "url": "https://stacker.news/.well-known/lnurlp/k00b",
                    "callback": "https://stacker.news/api/lnurlp/k00b/pay",
                    "minSendableSats": 2,
                    "maxSendableSats": 721649,
                    "commentAllowed": 1000,
                    "description": "Payment to k00b@stacker.news",
                    "identifier": null,
                    "hasImage": false,
                    "payerData": []
                  },
                  "zaps": {
                    "allowsNostr": true,
                    "nostrPubkey": "9279...0bcb",
                    "zapperNpub": "npub1..."
                  },
                  "nip05": {
                    "verified": true,
                    "identifier": "k00b@stacker.news",
                    "pubkey": "...",
                    "npub": "npub1...",
                    "relays": []
                  },
                  "amountCheck": {
                    "amountSats": 1000,
                    "withinLimits": true
                  },
                  "checks": [
                    {
                      "id": "lnurlp_endpoint",
                      "status": "pass",
                      "detail": "LUD-06 payRequest found."
                    }
                  ],
                  "note": "..."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "check_lightning_address_post",
        "summary": "Lightning Address & Zap Preflight",
        "description": "Before you pay or zap a Lightning Address (name@domain): resolves LUD-16/LNURL-pay and checks it is payable, with min/max sendable in sats, comment length, payer data, HTTPS callback, NIP-57 zap support (allowsNostr + zapper npub), CORS, and the NIP-05 Nostr identity on the same domain (pubkey, npub, relays). Optional amount_sats is checked against the limits. Returns payable / not_payable with reasons. Nothing is paid and no invoice is created. Omitted address = a public demo address. Unreachable domain = 502, not charged.",
        "tags": [
          "lightning",
          "bitcoin",
          "lnurl",
          "lightning-address",
          "lud-16",
          "zaps",
          "nostr",
          "nip-57",
          "nip-05",
          "payments",
          "tipping"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "10000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Lightning Address & Zap Preflight: $0.01 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "Lightning Address, e.g. name@domain.com",
                    "example": "k00b@stacker.news"
                  },
                  "amount_sats": {
                    "type": "integer",
                    "description": "optional amount you intend to send, checked against min/max",
                    "example": 1000
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "lightningAddress",
                    "payable",
                    "verdict",
                    "checks"
                  ],
                  "properties": {
                    "lightningAddress": {
                      "type": "string"
                    },
                    "payable": {
                      "type": "boolean"
                    },
                    "verdict": {
                      "type": "string",
                      "enum": [
                        "payable",
                        "not_payable"
                      ]
                    },
                    "summary": {
                      "type": "string"
                    },
                    "lnurlp": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "zaps": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "nip05": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "amountCheck": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "checks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "detail": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "lightningAddress": "k00b@stacker.news",
                  "payable": true,
                  "verdict": "payable",
                  "summary": "k00b@stacker.news can receive Lightning payments of 2-721649 sats, zaps supported, NIP-05 verified.",
                  "lnurlp": {
                    "url": "https://stacker.news/.well-known/lnurlp/k00b",
                    "callback": "https://stacker.news/api/lnurlp/k00b/pay",
                    "minSendableSats": 2,
                    "maxSendableSats": 721649,
                    "commentAllowed": 1000,
                    "description": "Payment to k00b@stacker.news",
                    "identifier": null,
                    "hasImage": false,
                    "payerData": []
                  },
                  "zaps": {
                    "allowsNostr": true,
                    "nostrPubkey": "9279...0bcb",
                    "zapperNpub": "npub1..."
                  },
                  "nip05": {
                    "verified": true,
                    "identifier": "k00b@stacker.news",
                    "pubkey": "...",
                    "npub": "npub1...",
                    "relays": []
                  },
                  "amountCheck": {
                    "amountSats": 1000,
                    "withinLimits": true
                  },
                  "checks": [
                    {
                      "id": "lnurlp_endpoint",
                      "status": "pass",
                      "detail": "LUD-06 payRequest found."
                    }
                  ],
                  "note": "..."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/v1/btc/onchain-brief": {
      "get": {
        "operationId": "get_bitcoin_onchain_analytics_report",
        "summary": "Bitcoin On-Chain Brief (daily network + miner analytics report)",
        "description": "A complete daily Bitcoin network and miner analytics report in one call, ready to use or post: valuation (live price, 1/7/30/90/365-day change, 90-day and 1-year range and drawdown, Mayer Multiple vs the 200-day average, Puell Multiple), miners (hashrate and 30d trend, Hash Ribbons 30/60-day crossover, hashprice USD/PH/day and trend, fee share of revenue, difficulty history and next adjustment, pool concentration and Nakamoto coefficient), block space (fee revenue per block 7d vs 30d, tx and fee per tx over the last 144 blocks), fee market (sat/vB tiers, mempool backlog, cost of a typical tx), supply (issued, % of 21M, inflation, halving countdown), Lightning capacity, up to 8 rule-based signals each with the number behind it, an overall read, a plain-English headline and a ready-to-post Markdown brief. No parameters. Data: mempool.space public API (1 year of block rewards, prices and hashrate). Not charged if the data source is down.",
        "tags": [
          "bitcoin",
          "btc",
          "onchain",
          "on-chain-analytics",
          "mayer-multiple",
          "puell-multiple",
          "hash-ribbons",
          "hashrate",
          "hashprice",
          "miners",
          "difficulty",
          "market-report",
          "research",
          "daily-brief",
          "crypto",
          "newsletter"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.25"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "250000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Bitcoin On-Chain Brief (daily network + miner analytics report): $0.25 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "asOf",
                    "overall",
                    "headline",
                    "signals",
                    "valuation",
                    "blockSpace",
                    "miners",
                    "feeMarket",
                    "markdown"
                  ],
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "dailyDataFor": {
                      "type": "string"
                    },
                    "overall": {
                      "type": "string",
                      "enum": [
                        "constructive",
                        "mixed",
                        "defensive"
                      ]
                    },
                    "headline": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "signals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "value": {},
                          "reading": {
                            "type": "string",
                            "enum": [
                              "bullish",
                              "neutral",
                              "caution",
                              "bearish"
                            ]
                          },
                          "why": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "valuation": {
                      "type": "object"
                    },
                    "blockSpace": {
                      "type": "object"
                    },
                    "miners": {
                      "type": "object"
                    },
                    "feeMarket": {
                      "type": "object"
                    },
                    "supply": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "lightning": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "watch": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "markdown": {
                      "type": "string"
                    },
                    "completeness": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T13:00:00.000Z",
                  "dailyDataFor": "2026-11-20",
                  "overall": "mixed",
                  "headline": [
                    "BTC $57,701 (-1.9% 24h, -8.4% 30d), -21.3% from its 90-day high.",
                    "Valuation: Mayer Multiple 0.85 (below 200d average, 200-day avg $68,260); Puell Multiple 0.8 (neutral).",
                    "Signals: 2 bullish, 4 neutral, 1 caution, 1 bearish -> overall mixed."
                  ],
                  "signals": [
                    {
                      "id": "mayer_multiple",
                      "value": "0.85 (200d avg $68,260)",
                      "reading": "bullish",
                      "why": "Mayer Multiple 0.8-1.0: price is under its 200-day average; historically an accumulation range, also a downtrend warning."
                    }
                  ],
                  "valuation": {
                    "priceUsd": 57701,
                    "mayerMultiple": 0.85,
                    "mayerZone": "below_200d_average",
                    "puellMultiple": 0.8,
                    "puellZone": "neutral",
                    "sma200dUsd": 68260,
                    "change": {
                      "d1Percent": -1.9,
                      "d7Percent": -5.1,
                      "d30Percent": -8.4,
                      "d90Percent": -12,
                      "d365Percent": -30
                    }
                  },
                  "blockSpace": {
                    "feesPerBlockBtc7d": 0.03,
                    "feesPerBlockTrend7dVs30dPercent": -4.2,
                    "last144Blocks": {
                      "transactions": 508437,
                      "avgFeePerTxSats": 739
                    }
                  },
                  "miners": {
                    "hashrateEhs7d": 1001.2,
                    "hashrateChange30dPercent": 2.2,
                    "hashRibbons": {
                      "state": "healthy",
                      "sma30Ehs": 1010.4,
                      "sma60Ehs": 995.1
                    },
                    "hashpriceUsdPerPhDay7d": 34.1,
                    "hashpriceChange30dPercent": -12.5,
                    "difficulty": {
                      "estimatedChangePercent": 1.8,
                      "remainingBlocks": 1185
                    },
                    "pools": {
                      "top3SharePercent": 63.9,
                      "nakamotoCoefficient": 3
                    }
                  },
                  "feeMarket": {
                    "satPerVb": {
                      "fastest": 6,
                      "economy": 2
                    },
                    "typicalTxUsd": {
                      "vbytes": 141,
                      "nextBlock": 0.49
                    }
                  },
                  "supply": {
                    "issuedBtc": 20115316,
                    "percentOf21M": 95.79,
                    "blocksToHalving": 73100
                  },
                  "markdown": "## Bitcoin On-Chain Brief - 2026-11-21\n- BTC $57,701 ...",
                  "completeness": {
                    "sections": 6,
                    "daysOfHistory": 365,
                    "missing": []
                  },
                  "sources": [
                    "mempool.space"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "get_bitcoin_onchain_analytics_report_post",
        "summary": "Bitcoin On-Chain Brief (daily network + miner analytics report)",
        "description": "A complete daily Bitcoin network and miner analytics report in one call, ready to use or post: valuation (live price, 1/7/30/90/365-day change, 90-day and 1-year range and drawdown, Mayer Multiple vs the 200-day average, Puell Multiple), miners (hashrate and 30d trend, Hash Ribbons 30/60-day crossover, hashprice USD/PH/day and trend, fee share of revenue, difficulty history and next adjustment, pool concentration and Nakamoto coefficient), block space (fee revenue per block 7d vs 30d, tx and fee per tx over the last 144 blocks), fee market (sat/vB tiers, mempool backlog, cost of a typical tx), supply (issued, % of 21M, inflation, halving countdown), Lightning capacity, up to 8 rule-based signals each with the number behind it, an overall read, a plain-English headline and a ready-to-post Markdown brief. No parameters. Data: mempool.space public API (1 year of block rewards, prices and hashrate). Not charged if the data source is down.",
        "tags": [
          "bitcoin",
          "btc",
          "onchain",
          "on-chain-analytics",
          "mayer-multiple",
          "puell-multiple",
          "hash-ribbons",
          "hashrate",
          "hashprice",
          "miners",
          "difficulty",
          "market-report",
          "research",
          "daily-brief",
          "crypto",
          "newsletter"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.25"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "250000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Bitcoin On-Chain Brief (daily network + miner analytics report): $0.25 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "asOf",
                    "overall",
                    "headline",
                    "signals",
                    "valuation",
                    "blockSpace",
                    "miners",
                    "feeMarket",
                    "markdown"
                  ],
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "dailyDataFor": {
                      "type": "string"
                    },
                    "overall": {
                      "type": "string",
                      "enum": [
                        "constructive",
                        "mixed",
                        "defensive"
                      ]
                    },
                    "headline": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "signals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "value": {},
                          "reading": {
                            "type": "string",
                            "enum": [
                              "bullish",
                              "neutral",
                              "caution",
                              "bearish"
                            ]
                          },
                          "why": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "valuation": {
                      "type": "object"
                    },
                    "blockSpace": {
                      "type": "object"
                    },
                    "miners": {
                      "type": "object"
                    },
                    "feeMarket": {
                      "type": "object"
                    },
                    "supply": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "lightning": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "watch": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "markdown": {
                      "type": "string"
                    },
                    "completeness": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T13:00:00.000Z",
                  "dailyDataFor": "2026-11-20",
                  "overall": "mixed",
                  "headline": [
                    "BTC $57,701 (-1.9% 24h, -8.4% 30d), -21.3% from its 90-day high.",
                    "Valuation: Mayer Multiple 0.85 (below 200d average, 200-day avg $68,260); Puell Multiple 0.8 (neutral).",
                    "Signals: 2 bullish, 4 neutral, 1 caution, 1 bearish -> overall mixed."
                  ],
                  "signals": [
                    {
                      "id": "mayer_multiple",
                      "value": "0.85 (200d avg $68,260)",
                      "reading": "bullish",
                      "why": "Mayer Multiple 0.8-1.0: price is under its 200-day average; historically an accumulation range, also a downtrend warning."
                    }
                  ],
                  "valuation": {
                    "priceUsd": 57701,
                    "mayerMultiple": 0.85,
                    "mayerZone": "below_200d_average",
                    "puellMultiple": 0.8,
                    "puellZone": "neutral",
                    "sma200dUsd": 68260,
                    "change": {
                      "d1Percent": -1.9,
                      "d7Percent": -5.1,
                      "d30Percent": -8.4,
                      "d90Percent": -12,
                      "d365Percent": -30
                    }
                  },
                  "blockSpace": {
                    "feesPerBlockBtc7d": 0.03,
                    "feesPerBlockTrend7dVs30dPercent": -4.2,
                    "last144Blocks": {
                      "transactions": 508437,
                      "avgFeePerTxSats": 739
                    }
                  },
                  "miners": {
                    "hashrateEhs7d": 1001.2,
                    "hashrateChange30dPercent": 2.2,
                    "hashRibbons": {
                      "state": "healthy",
                      "sma30Ehs": 1010.4,
                      "sma60Ehs": 995.1
                    },
                    "hashpriceUsdPerPhDay7d": 34.1,
                    "hashpriceChange30dPercent": -12.5,
                    "difficulty": {
                      "estimatedChangePercent": 1.8,
                      "remainingBlocks": 1185
                    },
                    "pools": {
                      "top3SharePercent": 63.9,
                      "nakamotoCoefficient": 3
                    }
                  },
                  "feeMarket": {
                    "satPerVb": {
                      "fastest": 6,
                      "economy": 2
                    },
                    "typicalTxUsd": {
                      "vbytes": 141,
                      "nextBlock": 0.49
                    }
                  },
                  "supply": {
                    "issuedBtc": 20115316,
                    "percentOf21M": 95.79,
                    "blocksToHalving": 73100
                  },
                  "markdown": "## Bitcoin On-Chain Brief - 2026-11-21\n- BTC $57,701 ...",
                  "completeness": {
                    "sections": 6,
                    "daysOfHistory": 365,
                    "missing": []
                  },
                  "sources": [
                    "mempool.space"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/v1/pass": {
      "get": {
        "operationId": "buy_bitcoin_tools_day_pass",
        "summary": "Day pass: 24 hours, up to 1000 calls",
        "description": "Buy once, call all day: a signed token for up to 1000 calls to the per-call tools (fee planner, payment verification, address screen, Lightning Address preflight) for 24 hours (the On-Chain Brief needs the 7-day Desk pass). Send it as Authorization: Bearer <token> or X-Zap-Pass: <token>. Built for merchant agents that poll payment status: 100 payment checks already cost $1.",
        "tags": [
          "bitcoin",
          "lightning",
          "subscription",
          "day-pass",
          "prepaid",
          "payment-verification",
          "monitoring"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "1"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "1000000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Day pass: 24 hours, up to 1000 calls: $1.00 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pass": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "max_calls": {
                      "type": "integer"
                    },
                    "use": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "pass",
                    "expires_at"
                  ]
                },
                "example": {
                  "pass": "zp1.eyJ2IjoxLC4uLn0.abc",
                  "expires_at": "2026-11-23T00:00:00.000Z",
                  "max_calls": 1000,
                  "use": "Send Authorization: Bearer <pass> ..."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "buy_bitcoin_tools_day_pass_post",
        "summary": "Day pass: 24 hours, up to 1000 calls",
        "description": "Buy once, call all day: a signed token for up to 1000 calls to the per-call tools (fee planner, payment verification, address screen, Lightning Address preflight) for 24 hours (the On-Chain Brief needs the 7-day Desk pass). Send it as Authorization: Bearer <token> or X-Zap-Pass: <token>. Built for merchant agents that poll payment status: 100 payment checks already cost $1.",
        "tags": [
          "bitcoin",
          "lightning",
          "subscription",
          "day-pass",
          "prepaid",
          "payment-verification",
          "monitoring"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "1"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "1000000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Day pass: 24 hours, up to 1000 calls: $1.00 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pass": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "max_calls": {
                      "type": "integer"
                    },
                    "use": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "pass",
                    "expires_at"
                  ]
                },
                "example": {
                  "pass": "zp1.eyJ2IjoxLC4uLn0.abc",
                  "expires_at": "2026-11-23T00:00:00.000Z",
                  "max_calls": 1000,
                  "use": "Send Authorization: Bearer <pass> ..."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/v1/pass/week": {
      "get": {
        "operationId": "buy_bitcoin_desk_week_pass",
        "summary": "7-day Desk pass: every route incl. the daily On-Chain Brief",
        "description": "One $1.25 payment, 7 days: up to 3000 calls to every paid route, including the $0.25 Bitcoin On-Chain Brief (a daily report bot pays $1.75/week per call, so this is about 30% less) plus the fee planner, payment verification, address screen and Lightning preflight. Send it as Authorization: Bearer <token> or X-Zap-Pass: <token>. Also buyable without x402: plain USDC transfer on Base (/v1/pass/usdc/quote?kind=week) or on-chain BTC (/v1/pass/btc/quote?kind=week).",
        "tags": [
          "bitcoin",
          "subscription",
          "weekly",
          "prepaid",
          "onchain-analytics",
          "daily-brief",
          "payment-verification",
          "monitoring"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "1.25"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "1250000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "7-day Desk pass: every route incl. the daily On-Chain Brief: $1.25 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pass": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "max_calls": {
                      "type": "integer"
                    },
                    "scope": {
                      "type": "string"
                    },
                    "use": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "pass",
                    "expires_at"
                  ]
                },
                "example": {
                  "pass": "zp1.eyJ2IjoxLC4uLn0.abc",
                  "expires_at": "2026-11-28T00:00:00.000Z",
                  "max_calls": 3000,
                  "scope": "all",
                  "use": "Send Authorization: Bearer <pass> ..."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "buy_bitcoin_desk_week_pass_post",
        "summary": "7-day Desk pass: every route incl. the daily On-Chain Brief",
        "description": "One $1.25 payment, 7 days: up to 3000 calls to every paid route, including the $0.25 Bitcoin On-Chain Brief (a daily report bot pays $1.75/week per call, so this is about 30% less) plus the fee planner, payment verification, address screen and Lightning preflight. Send it as Authorization: Bearer <token> or X-Zap-Pass: <token>. Also buyable without x402: plain USDC transfer on Base (/v1/pass/usdc/quote?kind=week) or on-chain BTC (/v1/pass/btc/quote?kind=week).",
        "tags": [
          "bitcoin",
          "subscription",
          "weekly",
          "prepaid",
          "onchain-analytics",
          "daily-brief",
          "payment-verification",
          "monitoring"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "1.25"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xaD3dEF6392A5Fe02a3ffCB979678Fc1E3cb49DF3"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "1250000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "7-day Desk pass: every route incl. the daily On-Chain Brief: $1.25 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pass": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "max_calls": {
                      "type": "integer"
                    },
                    "scope": {
                      "type": "string"
                    },
                    "use": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "pass",
                    "expires_at"
                  ]
                },
                "example": {
                  "pass": "zp1.eyJ2IjoxLC4uLn0.abc",
                  "expires_at": "2026-11-28T00:00:00.000Z",
                  "max_calls": 3000,
                  "scope": "all",
                  "use": "Send Authorization: Bearer <pass> ..."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health/data": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health/brief": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/peek": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/pass/btc/quote": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/pass/btc/claim": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/pass/usdc/quote": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/pass/usdc/claim": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  }
}