-
Notifications
You must be signed in to change notification settings - Fork 45
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 request: allow onchain fees to be known before committing to paying them #526
Comments
That's right @danielgranhao |
Oh, sorry, completely missed that PR and the
That would be nice! |
@roeierez I was working on a PR for adding the refund tx weight to Wouldn't it be better to go with a "prepare" approach (similar to #294) that would provide the exact fee that will be used? |
Yes makes sense. |
Link currently points to a different line of code. |
Right @JssDWt I meant this one: https://github.com/breez/breez-sdk/blob/main/libs/sdk-core/src/breez_services.rs#L647 |
When either using any of the following methods:
send_onchain()
sweep()
refund()
it would improve UX if we could know the fees that will be paid.
This could be done by splitting the methods into preparation and execution steps, such that after preparing, one can decide whether to execute or not based on the fees.
The text was updated successfully, but these errors were encountered: