Class Event.OpenChannelRequest

  • Enclosing class:
    Event

    public static final class Event.OpenChannelRequest
    extends Event
    Indicates a request to open a new channel by a peer. To accept the request, call [`ChannelManager::accept_inbound_channel`]. To reject the request, call [`ChannelManager::force_close_channel`]. The event is only triggered when a new open channel request is received and the [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel [`ChannelManager::force_close_channel`]: crate::ln::channelmanager::ChannelManager::force_close_channel [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
    • Field Detail

      • temporary_channel_id

        public final byte[] temporary_channel_id
        The temporary channel ID of the channel requested to be opened. When responding to the request, the `temporary_channel_id` should be passed back to the ChannelManager with [`ChannelManager::accept_inbound_channel`] to accept, or to [`ChannelManager::force_close_channel`] to reject. [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel [`ChannelManager::force_close_channel`]: crate::ln::channelmanager::ChannelManager::force_close_channel
      • counterparty_node_id

        public final byte[] counterparty_node_id
        The node_id of the counterparty requesting to open the channel.
      • funding_satoshis

        public final long funding_satoshis
        The channel value of the requested channel.
      • push_msat

        public final long push_msat
        Our starting balance in the channel if the request is accepted, in milli-satoshi.