Skip to content

Commit 52e4009

Browse files
committed
f Add further clarification on spendable balances
1 parent e351fe7 commit 52e4009

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/balance.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ pub struct BalanceDetails {
1818
/// [`MaybeTimeoutClaimableHTLC`]: LightningBalance::MaybeTimeoutClaimableHTLC
1919
/// [`lightning_balances`]: Self::lightning_balances
2020
pub total_lightning_balance_sats: u64,
21-
/// A detailed list of all known Lightning balances.
21+
/// A detailed list of all known Lightning balances that would be claimable on channel closure.
22+
///
23+
/// Note that less than the listed amounts are spendable over lightning as further reserve
24+
/// restrictions apply. Please refer to [`ChannelDetails::outbound_capacity_msat`] and
25+
/// [`ChannelDetails::next_outbound_htlc_limit_msat`] as returned by [`Node::list_channels`]
26+
/// for a better approximation of the spendable amounts.
27+
///
28+
/// [`ChannelDetails::outbound_capacity_msat`]: crate::ChannelDetails::outbound_capacity_msat
29+
/// [`ChannelDetails::next_outbound_htlc_limit_msat`]: crate::ChannelDetails::next_outbound_htlc_limit_msat
30+
/// [`Node::list_channels`]: crate::Node::list_channels
2231
pub lightning_balances: Vec<LightningBalance>,
2332
}
2433

0 commit comments

Comments
 (0)