-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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]: Add outpoints array to EstimateFee RPC #9488
Comments
Since you are interested in the total fee amount required, an alternative approach for this would be to use the new Line 1246 in 036a5a9
The PSBT based template you specify inputs you definitely want to spend and the main output to send to. More inputs are added if necessary and a change output will either be added if needed or the excess amount can be added to an existing output. |
@guggero Thanks for your suggestion. But using FundPsbt will also lock those UTXOs making them unavailable for the actual SendCoins endpoint I want to call afterwards. Here in more detail what I try to achieve: When going the PSBT route utxos will get locked all the time while the user crafts his transaction ( as I want to update the fee estimation on every change) which is a problem. Furthermore when changing everything to the psbt flow, I don't see an easy way to achieve something similar to the sendAll flag. |
True, you don't automatically get
The idea would be that you'd also use the IMO locking the inputs is actually a feature you should want. Otherwise if the user selects certain UTXOs and you don't lock them, how can you be sure they're still available once you call So I'm in general a bit hesitant in adding a lot of features to some of the older RPCs, since maintaining them is a lot of work. |
Thanks for your comment. |
Is your feature request related to a problem? Please describe.
While outpoints can be set in SendCoins and OpenChannels, it cannot be set in EstimateFee.
Please add this functionality so proper fee estimations can be displayed for more sophisitcated transactions.
Describe the solution you'd like
Add an outpoints array to the estimate fee endpoint (https://lightning.engineering/api-docs/api/lnd/lightning/estimate-fee/) exactly like in SendCoins for example.
The text was updated successfully, but these errors were encountered: