Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Enhance address-sweep-spendable Behavior #1861

Open
erubboli opened this issue Dec 29, 2024 · 0 comments
Open

[Feature] Enhance address-sweep-spendable Behavior #1861

erubboli opened this issue Dec 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@erubboli
Copy link
Member

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:

  1. 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.

  2. 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

@erubboli erubboli added the enhancement New feature or request label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant