Add an option to send a transaction using all available LBC #1628
Labels
area: wallet
good first issue
Tom's Wishlist
type: new feature
New functionality that does not exist yet
The Issue
As a daemon or app user, I want to be able to move all my funds from one address to another. Currently, you'd need to send some amount that's smaller than the wallet balance to account for fees. There should be an option that allows all funds to be sent along with the appropriate fee, i.e. a send max scenario.
Steps
all
as a value to--amount
. this signals you want to use your whole available balanceAPIs that should support this:
support_create
,wallet_send
, any other api that has a--amount
flagUse case: i want to support my channel with all my available lbc and i don't want to do the math to figure out how much the fee should be.
Take a look
txo_fund --everything
. There may be reusable code there. (https://github.com/lbryio/lbry-sdk/blob/master/lbry/wallet/account.py#L488)The text was updated successfully, but these errors were encountered: