8000 [Feature] Enhance address-sweep-spendable Behavior · Issue #1861 · mintlayer/mintlayer-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature] Enhance address-sweep-spendable Behavior #1861
Open
@erubboli

Description

@erubboli

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0