finalize_btc_psbt
Finalize a multi-sig PSBT after all required signatures are added to extract the broadcast-ready transaction hex, with an option to broadcast directly.
Instructions
Finalize a fully-signed multi-sig PSBT (typically the output of combine_btc_psbts once the threshold is met) and extract the broadcast-ready tx hex. Refuses with a per-input breakdown when any input is below its threshold (e.g. "input 0: 1/2 signatures"). Pass broadcast: true to send via the configured indexer in the same call — returns broadcastedTxid on success. Pass broadcast: false (default) when the caller wants to inspect the hex first or broadcast through a different relay. No device touch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| psbtBase64 | Yes | Base64-encoded PSBT v0 with all required signatures spliced in (typically via `combine_btc_psbts`). Refused with a per-input breakdown when any input is below its threshold (e.g. 1/2 sigs). | |
| broadcast | No | When true, broadcasts the finalized tx via the configured indexer and returns `broadcastedTxid` alongside `txid`. When false (default), only returns the tx hex — the caller decides when/where to broadcast. |