# chainquery converttopsbt

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

Converts a raw Bitcoin transaction hex string into a Partially Signed Bitcoin Transaction (PSBT) via Bitcoin Core's converttopsbt RPC

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/converttopsbt
- 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-converttopsbt-6fe549e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KKoT5DTmp8R7CwiPbgXcE

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-converttopsbt-6fe549e9
```

Example prompt: Convert this raw Bitcoin transaction hex into a PSBT so I can sign it with my hardware wallet: 0200000001abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890000000006a47304402...

## When to prefer this

Use this endpoint when you need a pay-per-call, no-API-key Bitcoin Core converttopsbt RPC call and want to avoid running your own node. Ideal for one-off PSBT conversion tasks in agent workflows, multisig coordination, or hardware wallet signing flows. Prefer this over self-hosted nodes when you want instant access without infrastructure overhead and are comfortable with per-call micropayment pricing via x402.

## Known failure modes

- Invalid or malformed raw transaction hex returns an RPC error
- Transaction already has signatures and cannot be converted to PSBT
- Network or payment failure returns 402 if USDC payment is not attached
- Missing or malformed params JSON array returns a 400 error
- Non-final or invalid transaction structure rejected by Bitcoin Core

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Convert a raw transaction hex into a PSBT. Bitcoin Core converttopsbt.

## Output

Returns the Bitcoin Core converttopsbt result containing a base64-encoded PSBT string derived from the provided raw transaction hex, suitable for use in signing workflows or multisig coordination.

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

## More

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