pub struct ChannelDetails {
pub channel_id: ChannelId,
pub user_channel_id: UserChannelId,
pub funding_txo: Option<OutPoint>,
pub is_usable: bool,
pub channel_value: Amount,
pub our_balance: Amount,
pub their_balance: Amount,
pub punishment_reserve: Amount,
pub outbound_capacity: Amount,
pub inbound_capacity: Amount,
}Expand description
Details about one of this node’s Lightning channels.
Fields§
§channel_id: ChannelIdThe id of the channel.
user_channel_id: UserChannelIdA user-provided id for this channel that’s associated with the channel throughout its whole lifetime, as the Lightning protocol channel id is only known after negotiating the channel and creating the funding tx.
funding_txo: Option<OutPoint>The channel’s funding transaction output, or None if the funding
transaction has not yet been confirmed.
is_usable: boolWhether the channel is ready and its counterparty is online, so it can send and receive payments right now.
channel_value: AmountThe total value of the channel.
our_balance: AmountOur balance in the channel.
their_balance: AmountThe counterparty’s balance in the channel.
punishment_reserve: AmountThe portion of our balance that the counterparty requires us to keep in
reserve as anti-cheating collateral. This is unspendable and does not
count towards outbound_capacity.
outbound_capacity: AmountHow much of our balance is currently available to send.
inbound_capacity: AmountHow much of the counterparty’s balance is available for us to receive.