# chainquery estimaterawfee

> chainquery estimaterawfee is a paid API for AI agents from x402.chainquery.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns raw fee estimation data from a Bitcoin Core node for a given confirmation target, via pay-per-call x402 protocol.

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/estimaterawfee
- 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/chainquery-estimaterawfee-2524becc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_29KjbzI3BwG1HW7kIB1M0

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-estimaterawfee-2524becc
```

Example prompt: What does Bitcoin Core's raw fee estimator return for a confirmation target of 6 blocks — give me the full bucket breakdown including pass and fail stats?

## When to prefer this

Use this endpoint when you need granular, raw fee estimation data from a real Bitcoin Core node without provisioning your own infrastructure or API key — especially useful for fee analysis, building custom fee selection logic, or debugging fee estimator behavior. Prefer over estimatesmartfee when you need the full histogram/bucket data rather than a single recommended fee rate.

## Known failure modes

- Invalid or missing confirmation target param returns RPC error
- Malformed JSON in params query string returns parse error
- Payment not processed or x402 payment header missing/invalid returns 402
- Node temporarily unavailable returns 5xx
- Confirmation target out of supported range (1-1008) returns RPC error

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Raw fee-estimate data from the node's fee estimator for a confirmation target. Bitcoin Core estimaterawfee.

## Output

A JSON object containing the raw output of Bitcoin Core's estimaterawfee RPC call: per-confirmation-target fee rate data including short, medium, and long horizon buckets, each with pass/fail statistics, fee rates, start/end ranges, and the number of transactions in each bucket.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "params": "[6]"
  }
 }
}
```

## 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": "estimaterawfee result"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-estimaterawfee-2524becc/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)
