You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The withdraw endpoint pays incorrect fee rate. Here is an example where I asked it to pay 51 sat/vB (via glightning API, but it paid 54.4). It is even worse for withdrawals with no change.
I'd like to be able to run it without actually posting the transaction, so I can go back and fudge the feerate input or amend the psbt and send it instead. This could be easily achieved by an additional optional parameter dryrun. It should still return tx (hex), txid (txid) and psbt (string), just not broadcast the transaction.
getinfo output
"version": "v24.05",
The text was updated successfully, but these errors were encountered:
This kind of makes sense for "check" to do this, and return optional extra data? At the moment check doesn't return anything useful in success, but we could enhance that?
This kind of makes sense for "check" to do this, and return optional extra data? At the moment check doesn't return anything useful in success, but we could enhance that?
I don't know how check works. I just want to get rawHex from withdraw endpoint.
Impa10r
changed the title
[Feature Request] Add "dry run" optional parameter for withdraw
[Feature Request] Add "dryrun" optional parameter for withdraw
Sep 4, 2024
This kind of makes sense for "check" to do this, and return optional extra data? At the moment check doesn't return anything useful in success, but we could enhance that?
There is no "check" in glightning, so it won't help me if you implement this only for lightning-cli. I can't think how you can do "check" API for any possible endpoint in Go, with all their parameters. I think adding one option to withdraw is more feasible.
Issue and Steps to Reproduce
The
withdraw
endpoint pays incorrect fee rate. Here is an example where I asked it to pay 51 sat/vB (via glightning API, but it paid 54.4). It is even worse for withdrawals with no change.I'd like to be able to run it without actually posting the transaction, so I can go back and fudge the
feerate
input or amend the psbt and send it instead. This could be easily achieved by an additional optional parameterdryrun
. It should still return tx (hex), txid (txid) and psbt (string), just not broadcast the transaction.getinfo
output"version": "v24.05",
The text was updated successfully, but these errors were encountered: