Breeze icon indicating copy to clipboard operation
Breeze copied to clipboard

[Priority: Low] Add sending all coins

Open nopara73 opened this issue 7 years ago • 3 comments

A user cannot send all its coins out of the wallet without leaving some small amount in, because of the fee calculation, it should be supported.

Illustration:

nopara73 avatar Sep 01 '17 11:09 nopara73

This is already implemented in the wallet back-end. There is a method called GetMaximumSpendableBalance in the WalletController. I think @dev0tion will add it to the UI when he's done with the TumbleBit work.

bokobza avatar Sep 04 '17 10:09 bokobza

Is it exposed to the HTTP API? If yes, could you insert the call here?

Are you sure it'll work correctly?
He might gets the maximum spendable balance, then makes a build transaction and it throws an error: not enough fee?
It should've be rather build-transaction, parameter amount: all.

nopara73 avatar Sep 04 '17 13:09 nopara73

Max balance function added to the frontend logic in #279 Have yet to figure out a way to display it in the current coin unit. Should be resolved in the next sprint.

dev0tion avatar Oct 17 '17 17:10 dev0tion