WalletServiceCLIwavecli exit

Exit

Exit queues a cooperative leave for the specified VTXO outpoint by default. When the caller supplies force_unroll_ack exactly, the daemon starts a unilateral unroll instead after checking that the outpoint is present in the local backing wallet's UTXO set.

Endpoints

gRPCrpc Exit(ExitRequest) returns (ExitResponse)
RESTPOST/v1/wallet/exit

Examples

wavecli exit --outpoint 4b2e9f1a7c3d5e6f8091a2b3c4d5e6f70819a2b3c4d5e6f708192a3b4c5d6e7f:0

RequestExitRequest

ExitRequest identifies the VTXO to exit and selects the exit path for WalletService.Exit: cooperative leave by default, or unilateral unroll when force_unroll_ack is supplied.

FieldTypeDescription
outpointstring

outpoint is the VTXO outpoint to exit, formatted as "txid:index".

onchain_addressstring

onchain_address is the cooperative leave destination. Empty asks the daemon to generate a fresh backing-wallet address internally.

force_unroll_ackstring

force_unroll_ack must be exactly "I_KNOW_WHAT_I_AM_DOING" to bypass cooperative leave and start unilateral unroll. It cannot be combined with onchain_address, and the server requires at least one confirmed local backing-wallet UTXO before admitting forced unroll.

ResponseExitResponse

ExitResponse reports the exit path the daemon took and its per-path detail for WalletService.Exit.

FieldTypeDescription
createdbool

created indicates whether a new unilateral exit job was spawned. False if an existing job already covers this target. Cooperative exits leave this unset.

actor_idstring

actor_id is the identifier of the durable unilateral exit job actor.

modeExitMode

mode identifies the branch the daemon took.

queued_outpointsrepeated string

queued_outpoints lists the outpoints accepted into cooperative leave.

onchain_addressstring

onchain_address is the cooperative leave destination used by the daemon. It may be caller-supplied or daemon-generated.

ExitModeenum

ExitMode identifies whether Exit queued a cooperative leave or started a forced unilateral unroll.

NameNumberDescription
EXIT_MODE_UNSPECIFIED0

EXIT_MODE_UNSPECIFIED is the proto zero value used when the exit path was not reported.

EXIT_MODE_COOPERATIVE1

EXIT_MODE_COOPERATIVE means Exit queued a cooperative leave (VTXO-to-onchain).

EXIT_MODE_UNILATERAL2

EXIT_MODE_UNILATERAL means Exit started a forced unilateral unroll.