# Bitcoin Fee Estimate Mempool

> Bitcoin Fee Estimate Mempool is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-16).

Returns current Bitcoin fee rates (sat/vB) for next block through economy, typical USD payment cost, mempool size, block tip height, next difficulty adjustment, and BTC price in USD/EUR.

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/btc-fees?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-fee-estimate-mempool-62a1c6fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZoeAEjpEy3zW8CQ_g_D-P

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-mempool-62a1c6fd -d '<json body>'
```

Example prompt: Before I send this Bitcoin payment, what are the current recommended fee rates — specifically for next block, 30 minutes, and economy — and how much would a typical payment cost in USD right now?

## When to prefer this

Use this endpoint when an agent needs to make a fee decision before broadcasting a Bitcoin transaction, monitor network congestion in real time, or surface BTC pricing and mempool stats to a user. It consolidates fee tiers, USD cost estimates, mempool size, difficulty adjustment, and BTC price in a single call, avoiding the need to query multiple Bitcoin data sources separately.

## Known failure modes

- Upstream mempool data source unavailable — returns error or stale data
- Network timeout if Bitcoin node or data provider is temporarily unreachable
- Malformed request body causes 400-level error
- x402 payment failure if USDC balance or payment header is missing/invalid

## How this service works

Bitcoin fees right now: recommended sat/vB for the next block, 30 minutes, 1 hour and economy, what a typical payment costs in USD, mempool size, tip height, next difficulty adjustment and the BTC price in USD and EUR. Call before sending a Bitcoin transaction.

## Output

Returns a JSON object with: recommended fee rates in sat/vB for next-block, ~30 minutes, ~1 hour, and economy tiers; estimated USD cost of a typical payment at each tier; current mempool size; latest block height; next difficulty adjustment info; and the current BTC price in both USD and EUR.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "data"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "btc_usd": {
         "type": "number"
        },
        "mempool": {
         "type": "object"
        },
        "fees_sat_vb": {
         "type": "object"
        },
        "typical_payment_usd": {
         "type": "object"
        }
       }
      },
      "success": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-fee-estimate-mempool-62a1c6fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
