Skip to content

Commit

Permalink
Expose get_payment_amount_limits() in UDL
Browse files Browse the repository at this point in the history
  • Loading branch information
gcomte committed May 24, 2023
1 parent 8e553e8 commit 81b2ff6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lipalightninglib.udl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ interface LightningNode {
[Throws=LnError]
LspFee query_lsp_fee();

// Get the current limits for the amount (in SAT) that can be transferred in a single payment. Currently there are only limits for receiving payments.
// The limits (partly) depend on the channel situation of the node, so it should be called again every time the user is about to receive a payment.
// The limits stay the same regardless of what amount wants to receive (= no changes while he's typing the amount)
[Throws=LnError]
PaymentAmountLimits get_payment_amount_limits();

// Calculate the actual LSP fee in millisats for the given amount of an incoming payment.
// If the already exisitng inbound capacity is enough, no new channel is required: The method returns 0.
// - amount_msat - amount in millisats to compute LSP fee for
Expand Down

0 comments on commit 81b2ff6

Please sign in to comment.