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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>",
"destination": "<destination>"
},
"name": "compose_sweep"
}
}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. |