Class Event.ChannelReady

  • Enclosing class:
    Event

    public static final class Event.ChannelReady
    extends Event
    Used to indicate that a channel with the given `channel_id` is ready to be used. This event is emitted either when the funding transaction has been confirmed on-chain, or, in case of a 0conf channel, when both parties have confirmed the channel establishment.
    • Field Detail

      • channel_id

        public final byte[] channel_id
        The `channel_id` of the channel that is ready.
      • 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 an inbound channel. [`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
      • counterparty_node_id

        public final byte[] counterparty_node_id
        The `node_id` of the channel counterparty.
      • channel_type

        public final ChannelTypeFeatures channel_type
        The features that this channel will operate with.