# BTC Mempool Snapshot

> BTC Mempool Snapshot is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns a live Bitcoin mempool snapshot including unconfirmed transaction count, total virtual size, total fees, a fee-rate histogram, and estimated block backlog.

## Facts

- Endpoint: GET https://payai.agentstools.dev/btc/mempool
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/btc-mempool-snapshot-e3aa906c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_37eheom0suo_W1SW435-L

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 btc-mempool-snapshot-e3aa906c
```

Example prompt: What does the Bitcoin mempool look like right now — how many unconfirmed transactions are there, what are the fee rates, and how many blocks of backlog are we looking at?

## When to prefer this

Choose this endpoint when you need a structured, machine-readable live snapshot of Bitcoin mempool conditions — including fee histograms and block backlog estimates — in a single low-cost call. Prefer it over block explorer scraping or full-node RPC when you need a clean JSON feed without infrastructure overhead. It is best for fee estimation, congestion monitoring, and settlement timing use cases.

## Known failure modes

- Network or upstream Bitcoin node unavailability returns a 5xx error
- Payment not included or malformed x402 payment header results in 402 response
- Rate limiting may occur on excessive polling, returning 429
- Mempool data may be slightly stale if upstream node is catching up

## How this service works

Live Bitcoin mempool snapshot: unconfirmed transaction count, total virtual size and total fees, a fee-rate histogram broken into buckets, and an estimated block backlog. Informational, not advice.

## Output

A JSON object containing: count of unconfirmed transactions, total virtual size (vbytes) of pending transactions, total fees (satoshis) in the mempool, a fee-rate histogram bucketed by sat/vbyte ranges, and an estimated number of blocks needed to clear the current backlog.

## 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",
     "required": [],
     "properties": {}
    }
   },
   "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/btc-mempool-snapshot-e3aa906c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
