Presign emergency exit chains
Signs, without broadcasting, the CPFP child of every transaction that still needs to be broadcast to unilaterally (emergency) exit the specified VTXOs, for as long as the wallet’s confirmed on-chain funds last. The result is a self-contained broadcast plan meant for later execution by any independent party: broadcast all of a wave’s (exit, child) packages together, wait for every one to confirm, then move to the next wave—each wave’s children spend change confirmed by the previous wave. Exit transactions already in the mempool are listed in the first wave’s in_mempool. Each exit’s status reports whether its packages are fully-signed (exited_in_wave names the wave whose confirmation completes the exit), partially-signed (confirmed funds ran out mid-chain; last_wave holds the last signed package and the unfunded tail is listed under unsigned), or unsigned. How much more funding a partial result would need is not reported: adding funds changes which coins the next child selects and therefore what it costs. Use GET /exits/fee for the remaining broadcast cost. Presigning reserves no funds, so a later spend from the on-chain wallet can invalidate the remaining children. It does reveal the on-chain addresses the children pay their change to, so one wallet sync recognizes the whole chain once broadcast, and repeat calls against unchanged funds re-derive the same addresses.
Authorizations
Base64url-encoded auth token
Body
Request body for presigning emergency exit chains.
The fee rate to sign the CPFP children at, in sat/vB (fractions allowed). When omitted,
the current fast rate is used.
The IDs of the VTXOs to presign exit chains for, in the order they will be broadcast. When omitted, every spendable VTXO in the wallet is used.
Response
Returns the presigned exit packages
Presigned emergency-exit chains for a set of VTXOs: a wave-by-wave broadcast plan plus a per-VTXO summary.
Execute the plan in wave order: broadcast all of a wave's packages together, then wait for
every one, and its in_mempool transactions, to confirm before the next wave — each
wave's children spend change confirmed by the previous wave.