# chainquery finalizepsbt

> chainquery finalizepsbt 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).

Finalizes a PSBT (Partially Signed Bitcoin Transaction) and returns the network-ready raw transaction hex via Bitcoin Core RPC, pay-per-call over x402.

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/finalizepsbt
- 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-finalizepsbt-4f6d53c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CmwM0t-qYNbRzZMKoEPB9

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-finalizepsbt-4f6d53c0
```

Example prompt: Finalize this PSBT for me and give me the raw transaction hex I can broadcast: cHNidP8BAHUCAAAAASaBcTce3/KF6Tet7qSze3gADAVmy7utVDCRT2HNyvnnAQAAAAD/////AgD0Bh...

## When to prefer this

Use this endpoint when you need to finalize a PSBT after all signers have contributed their signatures and want to extract the raw transaction hex for broadcast, without running your own Bitcoin Core node. Ideal for pay-as-you-go use cases where an API key is not desired.

## Known failure modes

- Invalid or malformed PSBT string causes RPC error
- PSBT not fully signed — returns complete:false with no hex
- Malformed params JSON array returns 400 bad request
- x402 payment not completed results in 402 Payment Required
- Bitcoin Core node temporarily unavailable returns 5xx error

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Finalize a complete PSBT and extract the network-ready raw transaction. Bitcoin Core finalizepsbt.

## Output

Returns the Bitcoin Core finalizepsbt result object containing: 'psbt' (the finalized PSBT base64 if not fully signed), 'hex' (the network-ready raw transaction hex string if complete), and 'complete' (boolean indicating whether all inputs are fully signed and the raw tx is extractable).

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

## More

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