# chainquery Bitcoin RPC – deriveaddresses

> chainquery Bitcoin RPC – deriveaddresses 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).

Derives Bitcoin addresses from an output descriptor, optionally over a range, using Bitcoin Core's deriveaddresses RPC via pay-per-call x402 micropayment.

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/deriveaddresses
- 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-bitcoin-rpc-deriveaddresses-7c5771c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5cHSOqHD5DxuHKJjInOc5

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-bitcoin-rpc-deriveaddresses-7c5771c0
```

Example prompt: Derive the Bitcoin addresses for the descriptor 'wpkh([d34db33f/84h/0h/0h]xpub6DJ2dNUysrn5Vt36jH2KLBT2i1auw1tTSSomg8PhqNiUtx8QX2SvC9nrHu81fT41fvDUnhMjEzQgXnQjKEu3oaqMSzhSrHMxyyoEAmUHQbY/0/*)' over index range 0 to 4.

## When to prefer this

Use this endpoint when you need to derive Bitcoin addresses from an output descriptor (e.g. xpub-based, P2WPKH, P2SH, multisig) without setting up your own Bitcoin Core node or managing API keys. Ideal for wallet tooling, address verification, or HD wallet address enumeration via a pay-per-call model.

## Known failure modes

- Invalid or malformed descriptor returns RPC error in result field
- Range out of bounds for the descriptor returns Bitcoin Core error
- Malformed JSON in params query parameter returns 400 or RPC parse error
- Payment failure (402) if x402 micropayment is not properly handled
- Network timeout if Bitcoin Core node is temporarily unavailable

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Derive addresses from an output descriptor, single or over a range. Bitcoin Core deriveaddresses.

## Output

Returns a JSON object with a 'result' field containing an array of Bitcoin address strings derived from the provided output descriptor, one per index in the requested range (or a single address if no range specified).

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-bitcoin-rpc-deriveaddresses-7c5771c0/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)
