Class Event.ChannelClosed

  • Enclosing class:
    Event

    public static final class Event.ChannelClosed
    extends Event
    Used to indicate that a previously opened channel with the given `channel_id` is in the process of closure.
    • Field Detail

      • channel_id

        public final byte[] channel_id
        The `channel_id` of the channel which has been closed. Note that on-chain transactions resolving the channel are likely still awaiting confirmation.
      • user_channel_id

        public final UInt128 user_channel_id
        The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise `user_channel_id` will be randomized for inbound channels. This may be zero for inbound channels serialized prior to 0.0.113 and will always be zero for objects serialized with LDK versions prior to 0.0.102. [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
      • reason

        public final ClosureReason reason
        The reason the channel was closed.