# chainquery getrawmempool – Bitcoin Mempool Lookup

> chainquery getrawmempool – Bitcoin Mempool Lookup is a paid API for AI agents from x402.chainquery.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns all transaction IDs currently in the Bitcoin mempool, or full verbose entries, via Bitcoin Core RPC from chainquery's independent full node.

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/getrawmempool
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainquery-getrawmempool-bitcoin-mempool-lookup-a650b808
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j6zaWK5Kq4QL4FHSaA96m

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 chainquery-getrawmempool-bitcoin-mempool-lookup-a650b808
```

Example prompt: Pull the current Bitcoin mempool from chainquery's full node and show me all the unconfirmed transaction IDs — use verbose mode so I can see fee and size details for each one.

## When to prefer this

Use this endpoint when you need a trustworthy, independently-operated Bitcoin full node's mempool view without managing your own API key. Prefer over hosted blockchain APIs when auditability of the node source matters, or when you want pay-per-call pricing without a subscription. Ideal for agents monitoring mempool congestion, fee estimation inputs, or transaction confirmation status checks.

## Known failure modes

- Payment required (402) if x402 payment header is missing or insufficient
- Invalid params JSON causes RPC error response
- Node temporarily unavailable returns 5xx
- Mempool may be very large, response could be slow or truncated under high load
- Non-GET HTTP methods rejected per schema

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. All transaction ids in the mempool, or full entries when verbose, from chainquery's independent full node. Bitcoin Core getrawmempool.

## Output

A JSON object with a 'result' field containing either an array of transaction IDs (non-verbose) or a map of txid to full transaction details including fee, size, virtual size, weight, time, height, and dependency info (verbose mode), as returned by Bitcoin Core's getrawmempool RPC.

## 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": {
      "params": {
       "type": "string",
       "description": "optional: JSON-encoded array of positional RPC params"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "description": "getrawmempool result"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-getrawmempool-bitcoin-mempool-lookup-a650b808/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.chainquery.com](https://www.zero.xyz/host/x402.chainquery.com/llms.txt)
