# Diamond Bitcoin Fee Plan Estimator

> Diamond Bitcoin Fee Plan Estimator is a paid API for AI agents from diamond.tail1b5f86.ts.net, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-30).

Returns batched Bitcoin transaction fee estimates for one or more transaction sizes against a per-transaction sat fee cap, using Diamond's independent node data.

## Facts

- Endpoint: GET https://diamond.tail1b5f86.ts.net/api/x402/feeplan?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/diamond-bitcoin-fee-plan-estimator-447fa2cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UDiKehRjz50t5iJ-hSJS8

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-bitcoin-fee-plan-estimator-447fa2cf
```

Example prompt: Using Diamond's fee plan estimator, what are my fee options for three Bitcoin transactions of 140, 220, and 350 vbytes with a fee cap of 1000 sats — which sizes can get the fastest confirmation within that budget?

## When to prefer this

Choose this endpoint when you need to evaluate Bitcoin transaction fee feasibility across multiple transaction sizes in a single call without signing or broadcasting any transaction. It is ideal for pre-flight fee checks in wallets, exchange payout pipelines, or any workflow that needs to compare fee scenarios against a sats budget using independent node data. It does not require an account — pay per call with Lightning or USDC via x402.

## Known failure modes

- Missing or malformed 'plan' query parameter returns an error — must follow format fee_cap:size1,size2,...
- Fee cap outside range 1–100,000,000 sats is rejected
- Transaction size below 60 or above 100,000 vbytes is rejected
- Too many transaction sizes (more than 25) in one call causes a validation error
- Network or node connectivity issues may result in stale or unavailable estimates
- Payment via x402 not provided or insufficient 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 with a UTC timestamp, an array of fee plan entries (each with vbytes, fee_cap_sats, available fee options, and a fastest-estimate-within-budget label or null), the observing node identifier, product name, and a disclaimer that estimates are from an independent node and are not guaranteed confirmation times.

## 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": [
      "plan"
     ],
     "properties": {
      "plan": {
       "type": "string",
       "maxLength": 185,
       "description": "Per-transaction fee cap in sats, colon, and one to 25 comma-separated transaction sizes in vbytes. Example 1000:140,220,350. Fee cap 1..100000000; each size 60..100000."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as_of": "<UTC timestamp>",
  "plans": [
   {
    "vbytes": 140,
    "options": [],
    "fee_cap_sats": 1000,
    "fastest_estimate_within_budget": "<estimate label or null>"
   }
  ],
  "terms": "Independent-node estimates, not guaranteed confirmation times. The budget is a per-transaction fee cap in sats, and each vsize entry is evaluated against that cap. Transaction sizes are supplied by the buyer. Node relay policies and network conditions can change. No transaction is signed or sent.",
  "product": "fee_plan_batch",
  "plan_count": 3,
  "observing_node": "Diamond"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/diamond-bitcoin-fee-plan-estimator-447fa2cf/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)
