# Bitcoin Mempool Snapshot

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

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

## Facts

- Endpoint: GET https://api.agentstools.dev/btc/mempool
- Price: $0.005/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-snapshot-088a8336
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A-nP_Zf29AJTgyjbg67HO

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-snapshot-088a8336
```

Example prompt: What does the Bitcoin mempool look like right now — how many unconfirmed transactions are there, what are the fee buckets, and how many blocks deep is the backlog?

## When to prefer this

Use this endpoint when you need a holistic real-time view of the Bitcoin mempool — combining transaction count, fee histogram, total fees, and block backlog in a single call. Prefer this over the fee-rates-only endpoint when you need the full mempool picture, not just confirmation-time fee recommendations.

## Known failure modes

- Network or upstream node unavailability returns a 5xx error
- Payment not included or invalid returns a 402 Payment Required
- Rate limiting may return a 429 Too Many Requests
- Mempool data may be momentarily stale if upstream node is syncing

## 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 of the mempool in vBytes, total fees in satoshis, a fee-rate histogram broken into sat/vByte buckets, and an estimated block backlog count. The data reflects the live mempool state at time of call.

## 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/bitcoin-mempool-snapshot-088a8336/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
