# Bitcoin Fee Estimate Curve

> Bitcoin Fee Estimate Curve is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-24).

Returns a fee rate curve in sat/vB across multiple confirmation target blocks for Bitcoin transactions, sourced from blockstream.info.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/btc-fee-curve?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-fee-estimate-curve-fcf319ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SiEdE37r5FiR4wWlYEP0N

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 bitcoin-fee-estimate-curve-fcf319ff
```

Example prompt: What are the current Bitcoin fee rates in sat/vB for confirmation targets of 1, 3, 6, 12, 24, and 144 blocks so I can decide how much to pay for my transaction?

## When to prefer this

Use this endpoint when you need Bitcoin transaction fee estimates across multiple confirmation targets simultaneously as a curve, rather than a single-target estimate. Ideal for wallets, payment processors, or dashboards that need to display fee tiers to users or automatically select an appropriate fee based on urgency. Prefer this over generic mempool APIs when you need structured fee curve data sourced from blockstream.info with customizable block targets.

## Known failure modes

- Invalid or out-of-range block targets (max 1008 blocks) may return an error or empty data
- Upstream blockstream.info unavailability may cause stale or failed responses
- Malformed targets query parameter (non-numeric or missing commas) may return a 400 error
- If the mempool is empty or unusual, fee estimates for low-priority targets may be unreliable

## How this service works

Bitcoin fee estimate curve in sat/vB across confirmation targets (1, 3, 6, 12, 24, 144 blocks, or custom targets) from blockstream.info. Provides fee rates and approximate confirmation duration.

## Output

A fee rate curve mapping each requested confirmation target (in blocks) to its estimated fee rate in sat/vB, along with approximate confirmation durations. Targets can be standard values (1, 3, 6, 12, 24, 144) or custom values up to 1008 blocks.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "targets": {
       "type": "string",
       "description": "Comma-separated target confirmation blocks (e.g. '1,3,6,12,24,144', max 1008)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-fee-estimate-curve-fcf319ff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
