# chainquery decodepsbt — Bitcoin Core PSBT Decoder

> chainquery decodepsbt — Bitcoin Core PSBT Decoder 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).

Decodes a Base64-encoded PSBT (Partially Signed Bitcoin Transaction) into a human-readable JSON object with inputs, outputs, scripts, and metadata via Bitcoin Core's decodepsbt RPC

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/decodepsbt
- 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-decodepsbt-bitcoin-core-psbt-decoder-26f74f82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ff6MU6EgFCOz4imJW3WV0

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-decodepsbt-bitcoin-core-psbt-decoder-26f74f82
```

Example prompt: Can you decode this PSBT for me and show me all the inputs, outputs, and scripts in plain JSON? The PSBT is: cHNidP8BAHUCAAAAASaBcTce3/KF6Tet7qSze3gADAVmy7utpLZD2xErGPkAAAA...

## When to prefer this

Use this endpoint when you need to inspect or audit a PSBT before signing or broadcasting — e.g. verifying inputs, outputs, and fee amounts in a multisig workflow. Prefer this over manual hex parsing when you need a structured JSON breakdown without running your own Bitcoin Core node. It requires no API key — just a micropayment via x402.

## Known failure modes

- Invalid or malformed Base64 PSBT string returns an RPC error
- Missing required 'params' query parameter causes a bad request
- Payment of $0.005 USDC not fulfilled causes 402 Payment Required before the call is processed
- Non-PSBT data passed as param causes Bitcoin Core to return a parse error
- Network or node unavailability returns a 5xx error

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Decode a PSBT into readable JSON: inputs, outputs, scripts, and metadata. Bitcoin Core decodepsbt.

## Output

A JSON object containing the fully decoded PSBT: an array of inputs (each with UTXOs, scripts, witness items, BIP32 derivation info, partial signatures), an array of outputs (with scripts and derivation paths), an estimated fee, and top-level metadata such as version and locktime — mirroring Bitcoin Core's decodepsbt RPC response.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-decodepsbt-bitcoin-core-psbt-decoder-26f74f82/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)
