ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiWatch only

Build a PSBT spending to a destination (p2wpkh wallets)

POST
/api/v1/watchonly/wallets/{id}/psbt

Gathers confirmed UTXOs across the wallet, builds a BIP-174 PSBT with witness_utxo per input for external signing (Sparrow, Coldcard, Ledger). Change returns to a fresh address.

Authorization

bearer

Path Parameters

id*string

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Response Body

Example Request
curl -X POST 'http://localhost:3001/api/v1/watchonly/wallets/string/psbt'
Example Response201
Empty