Skip to content

is there a way of getting an estimate on the combined routing fees before desciding to pay a bolt11 invoice in LDK? #2440

Closed Answered by tnull
diegovelascommerce asked this question in Help
Discussion options

You must be logged in to vote

Yes, you could retrieve a Route via your Router's find_route and then call Route::get_total_fees() before you go ahead and pay to that route via ChannelManager::send_payment_with_route.

Also, while this unfortunately just slipped the upcoming 0.0.116 release, you will be able to set a max total fee when calculating a route in the future, see #2339.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@diegovelascommerce
Comment options

Answer selected by diegovelascommerce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants