# chainquery analyzepsbt — Bitcoin PSBT Analyzer

> chainquery analyzepsbt — Bitcoin PSBT Analyzer 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).

Analyzes a Partially Signed Bitcoin Transaction (PSBT) to report per-input completeness, missing fields, next signing role, and estimated fee via Bitcoin Core's analyzepsbt RPC.

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/analyzepsbt
- 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-analyzepsbt-bitcoin-psbt-analyzer-2054d8a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6r9iBF5KJMVQlJEcI5n9i

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-analyzepsbt-bitcoin-psbt-analyzer-2054d8a8
```

Example prompt: Can you analyze this PSBT for me — cHNidP8BAH...— and tell me which inputs are complete, what fields are still missing, who needs to sign next, and what the estimated fee is?

## When to prefer this

Use this endpoint when you need to programmatically inspect the signing state of a PSBT — particularly for multisig workflows where you need to know who signs next, which inputs are ready, or whether the transaction is complete enough to finalize and broadcast. Prefer this over manual decoding when you need structured per-input analysis rather than raw hex decoding.

## Known failure modes

- Invalid or malformed PSBT base64 string returns a Bitcoin Core RPC error
- Missing required 'params' query parameter causes a parsing or method error
- Payment of $0.005 USDC not completed results in HTTP 402 response blocking the call
- Malformed JSON in params query parameter causes a 400-level error
- PSBT references unknown UTXOs that haven't been added yet, limiting fee estimation

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Analyze a PSBT: per-input completeness, missing fields, next signing role, and estimated fee. Bitcoin Core analyzepsbt.

## Output

Returns a Bitcoin Core analyzepsbt result object containing: per-input breakdown of completeness and missing fields, the next role required to advance signing (e.g. creator, updater, signer, finalizer), whether the PSBT is complete and ready to broadcast, and an estimated fee in BTC if determinable.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-analyzepsbt-bitcoin-psbt-analyzer-2054d8a8/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)
