# Diamond CPFP Budget Batch Calculator

> Diamond CPFP Budget Batch Calculator is a paid API for AI agents from diamond.tail1b5f86.ts.net, paid per call via x402, $0.02/call, status unknown (last checked 2026-12-05).

Calculates the fee budget needed to Child-Pays-For-Parent (CPFP) a stuck Bitcoin transaction to a target fee rate, across one or more child transaction sizes.

## Facts

- Endpoint: GET https://diamond.tail1b5f86.ts.net/api/x402/cpfp?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/diamond-cpfp-budget-batch-calculator-46a9d510
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Wfj1M7huEstptiktpR5xC

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

## How to call it through Zero

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

```sh
zero fetch --capability diamond-cpfp-budget-batch-calculator-46a9d510
```

Example prompt: My Bitcoin transaction abc123def456... has been stuck for hours — can you calculate the CPFP fee budget I'd need to bump it to 5 sat/vB, assuming my child transaction will be 250 vbytes?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call fee arithmetic estimate for CPFP without setting up an account. It is ideal for batch comparison across multiple child transaction sizes (up to 25) in a single call. Prefer this over manual mempool calculators when you need programmatic access to CPFP budget figures, especially when already operating in a Bitcoin/Lightning payment context.

## Known failure modes

- Invalid or unrecognized txid returns an error or empty plans array
- Target fee rate outside the allowed range (0.001–10000 sat/vB) causes a validation error
- Child vbyte sizes outside 60–100000 range are rejected
- More than 25 child sizes in a single request returns an error
- Malformed package string format causes a parse error
- Transaction not found in the mempool or UTXO set may yield empty or stale results
- Payment not completed via x402 results in a 402 Payment Required response

## How this service works

Bitcoin address risk checks (sanctions, ransomware, laundering patterns), address watch alerts, live whale and AML feeds, a market pulse, fee estimates, next-block projections, mining-pool share and transaction tools from 0.002 USDC. Pay per call with Lightning or USDC - no account.

## Output

Returns a JSON object containing a timestamp (`as_of`), an array of fee budget `plans` for each requested child size, the `product` identifier (`cpfp_budget_batch`), and a `terms` disclaimer clarifying that this is a fee arithmetic estimate only — not a broadcast, relay-policy validation, or confirmation guarantee.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string",
       "maxLength": 255,
       "description": "txid:target_sat_vb:child_vbytes[,child_vbytes...]. Target 0.001..10000 sat/vB (up to 3 decimals), one to 25 unique child sizes of 60..100000 vbytes."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as_of": "<UTC timestamp>",
  "plans": [],
  "terms": "A fee arithmetic estimate, not a transaction, broadcast, relay-policy validation or confirmation guarantee. Assumes one child spending an available output of the selected transaction and no additional unconfirmed inputs. Child size is buyer-supplied. Uses actual base fees of the observed transaction and its ancestors, excluding local fee deltas. Other miners and nodes can have different views and policies. Check output ownership, available value, descendants and package policy. Paid replay preserves the original snapshot; recheck current conditions before acting.",
  "product": "cpfp_budget_batch"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/diamond-cpfp-budget-batch-calculator-46a9d510/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from diamond.tail1b5f86.ts.net](https://www.zero.xyz/host/diamond.tail1b5f86.ts.net/llms.txt)
