Open
Description
Enhance address-sweep-spendable
Behavior
Return Transaction for Inspection & Add Option to Sweep All Addresses
Summary
The address-sweep-spendable
command currently broadcasts the transaction immediately, offering no opportunity for manual inspection. Additionally, the command requires specifying all addresses to be swept individually. This feature request proposes two enhancements:
-
Return the Transaction for Inspection
Instead of automatically broadcasting, the command should return the raw transaction (similar to other commands), allowing users to review it before broadcast. -
Option to Sweep All Addresses
Introduce a parameter that, if set, sweeps all spendable balances (including return addresses) of the current wallet to the specified address in a single step.
Example
Wallet> address-sweep-spendable mtc1q****aaaa all
Sweeping all outputs of the current wallet to the address mtc1q****aaaa
Transaction raw: 10201001010200101001010101010202020303000404005001020100101020010100101010101020202030300040400500102010010102001010010101010102020203030004040050010201001010200101001010101010202020303000404005001020100101020010100101010101020202030300040400500
Transaction summary:
Transaction id: 1232123123123123123123123123123123123123123123fa791234
=== BEGIN OF INPUTS ===
- Transaction(1232123123123123123123123123123123123123123123fa791234, 0)
- Transaction(1232123123123123123123123123123123123123123123fa791235, 0)
- Transaction(1232123123123123123123123123123123123123123123fa791236, 0)
=== END OF INPUTS ===
=== BEGIN OF OUTPUTS ===
- Transfer(mtc1q****aaaa, 1000)
=== END OF OUTPUTS ===
fees paid by transaction : 0.1 ML