# Bitcoin PSBT Analyzer

> Bitcoin PSBT Analyzer is a paid API for AI agents from diamond.btc-intel.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-21).

Decodes and analyzes a base64 PSBT to reveal inputs, outputs, fees, estimated vsize, missing signatures, and the recommended next step — without signing or broadcasting.

## Facts

- Endpoint: GET https://diamond.btc-intel.workers.dev/api/x402/psbt_decode?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-psbt-analyzer-2d12a9ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-Q4Ns6j1L3YpQlvm1_jkG

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-psbt-analyzer-2d12a9ef
```

Example prompt: Can you decode this PSBT for me and tell me how many signatures are still missing, what the fee is, and what the next step should be? Here's the base64: cHNidP8BAH...

## When to prefer this

Use this endpoint when you need a lightweight, read-only inspection of a PSBT before signing or broadcasting — especially in multi-sig workflows where you want to verify fee, vsize, missing signers, and the recommended next action without any risk of accidentally signing or submitting the transaction. Prefer it over a full node RPC call when you don't have local Bitcoin node access.

## Known failure modes

- Invalid or malformed base64 PSBT returns a decode error
- PSBT too large (exceeds 200,000 character limit) is rejected
- Missing 'psbt' query parameter returns a 400 bad request
- Input UTXO data absent causes fee/fee-rate fields to be omitted from the response
- URL-encoding of '+' characters in base64 omitted causes parsing errors

## How this service works

Decode and analyze a PSBT (base64): inputs, outputs, fee and fee rate when the input data is present, estimated vsize, signatures still missing and the next step. Nothing is signed or broadcast.

## Output

A JSON object containing: number of inputs and outputs, fee in BTC, estimated fee rate in sat/vB, estimated virtual size, number of missing signatures, and a 'next' field indicating the recommended next step (e.g. 'signer', 'combiner', 'finalizer', 'broadcaster').

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "psbt"
     ],
     "properties": {
      "psbt": {
       "type": "string",
       "maxLength": 200000,
       "description": "A PSBT in base64 (URL-encode + as %2B)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "next": "signer",
  "inputs": 1,
  "fee_btc": 0.00000705,
  "outputs": 2,
  "product": "decoded_psbt",
  "est_feerate_sat_vb": 5,
  "missing_signatures": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-psbt-analyzer-2d12a9ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from diamond.btc-intel.workers.dev](https://www.zero.xyz/host/diamond.btc-intel.workers.dev/llms.txt)
