# Beggar Bot BTC Fees

> Beggar Bot BTC Fees is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-23).

Returns current Bitcoin network fee estimates (in sats/vbyte) for a given transaction size, priced per call via x402 micropayment on Base mainnet

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/btcfees?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-btc-fees-535dd7bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gw3yHvFlfRg5Sq11lk65S

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 beggar-bot-btc-fees-535dd7bb
```

Example prompt: What are the current Bitcoin transaction fees — specifically for a standard 1-in 2-out P2WPKH transaction (141 vbytes)? Give me slow, medium, and fast fee tiers in sats/vbyte.

## When to prefer this

Use this endpoint when an AI agent needs real-time Bitcoin transaction fee estimates, especially in automated workflows that involve sending BTC and need to programmatically determine appropriate fee rates. It is priced per-call via x402 micropayment, making it suitable for pay-as-you-go agent pipelines without subscription overhead. Prefer this over manual mempool.space lookups when you need machine-readable fee data with optional per-tx cost calculation.

## Known failure modes

- Payment not provided or insufficient — returns HTTP 402 requiring $0.02 USDC via x402 on Base mainnet
- Invalid vbytes value (non-numeric or out of range) — may return 400 or unexpected result
- Bitcoin mempool data source unavailable — may return 503 or stale data
- Network timeout from upstream fee data provider

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

Returns current Bitcoin mempool fee rate estimates (sats/vbyte) across fee tiers (e.g. slow, standard, fast/next-block), and optionally calculates the total fee in satoshis for the given transaction size in vbytes. Default transaction size is 141 vbytes (standard 1-in 2-out P2WPKH).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "vbytes": {
       "type": "string",
       "description": "tx size, default 141 (1-in 2-out p2wpkh)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-btc-fees-535dd7bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
