Skip to content

Feature Request: Add a --buffer flag to btcli w transfer --all to keep a small balance for future gas fees #867

@rennostecu-hue

Description

@rennostecu-hue

Is your feature request related to a problem? Please describe.

Currently, when transferring the entire balance of a wallet using the command btcli w transfer --all, the wallet gets completely emptied out.
The problem is that if I later need to perform actions like unstaking from that same wallet, I cannot do so because there is 0 balance left in the coldwallet to pay for the network transaction fees. I am forced to send some $TAO back to the wallet first just to process the unstake.

Describe the solution you'd like

It would be very helpful to have a --buffer flag (e.g., --buffer 0.01) that can be used alongside --all. This would transfer the maximum amount minus the specified buffer, leaving a small, safe balance in the wallet to cover future network fees.

Additionally, as suggested by "Kat | Bittensor CM" in the Discord channel, it would be great if this buffer value could also be set in the config file. This way, users won't accidentally empty their wallets if they forget to add the flag.

Describe alternatives you've considered

The current alternative is manually checking the balance and calculating the exact transfer amount every time to ensure a small balance remains, which is tedious and prone to user error.

Additional context

I brought this up in the Discord community, and it was recommended to drop this suggestion as an issue here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions