# Bitcoin Mempool Fee Rates (x402 DataShop)

> Bitcoin Mempool Fee Rates (x402 DataShop) is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns current recommended Bitcoin transaction fee rates in sat/vB across five priority tiers (fastest, half-hour, hour, economy, minimum), optionally with difficulty retarget estimate, sourced from mempool.space.

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/btc/fees
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-mempool-fee-rates-x402-datashop-84b4243e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A4T0w_dciyALXfhMdoREa

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-mempool-fee-rates-x402-datashop-84b4243e
```

Example prompt: What are the current Bitcoin transaction fee rates right now — fastest confirmation, half-hour, one-hour, economy, and minimum — and also include the upcoming difficulty retarget estimate?

## When to prefer this

Choose this endpoint when you need live, tiered Bitcoin transaction fee recommendations across multiple priority levels in a single call. Prefer this over raw mempool APIs when you want normalized sat/vB outputs with optional difficulty retarget context and don't want to integrate directly with mempool.space. Ideal for wallets, fee estimators, trading bots, or dashboards that need current Bitcoin network fee conditions at low cost ($0.001 per call).

## Known failure modes

- Upstream mempool.space unavailable: service may return error or stale cached data
- Invalid query parameter value for 'include' (only 'difficulty' is accepted): likely ignored or returns 400
- Payment not processed (x402 protocol): 402 Payment Required response returned
- Network timeout if mempool.space API is slow to respond

## How this service works

Recommended Bitcoin transaction fee rates in sat/vB (fastest, half-hour, hour, economy, minimum) from mempool.space, computed from the live mempool. Optional ?include=difficulty adds the current difficulty retarget estimate (change %, remaining blocks/time). No required params; served with a 60s cache.

## Output

A JSON object with recommended fee rates in sat/vB for five priority tiers: fastest (next block), half-hour, hour, economy, and minimum. With ?include=difficulty, also returns the difficulty retarget percentage change, remaining blocks until adjustment, and estimated time until retarget. Results are cached for 60 seconds.

## 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": {
      "include": {
       "enum": [
        "difficulty"
       ],
       "type": "string",
       "description": "Add difficulty retarget estimate (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-mempool-fee-rates-x402-datashop-84b4243e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
