compose_sweep
Compose a transaction to sweep all assets and BTC from a source address to a destination, with options to transfer balances, ownership, and set fee rate.
Instructions
Compose a transaction to sweep all assets and/or BTC from one address to another
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | Optional memo | |
| flags | No | Bitfield: 1=transfer balances, 2=transfer ownership, 4=transfer BTC | |
| address | Yes | Source Bitcoin address | |
| inputs_set | No | Comma-separated UTXOs to use as inputs (txid:vout) | |
| destination | Yes | Destination Bitcoin address | |
| sat_per_vbyte | No | Fee rate in satoshis per virtual byte (e.g. 1, 5.5, 0.15). Check get_fee_estimate for current market rates. |