Package org.ldk.structs
Class Event.OpenChannelRequest
- java.lang.Object
-
- org.ldk.structs.Event
-
- org.ldk.structs.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ldk.structs.Event
Event.ChannelClosed, Event.DiscardFunding, Event.FundingGenerationReady, Event.OpenChannelRequest, Event.PaymentFailed, Event.PaymentForwarded, Event.PaymentPathFailed, Event.PaymentPathSuccessful, Event.PaymentReceived, Event.PaymentSent, Event.PendingHTLCsForwardable, Event.SpendableOutputs
-
-
Field Summary
Fields Modifier and Type Field Description byte[]counterparty_node_idThe node_id of the counterparty requesting to open the channel.longfunding_satoshisThe channel value of the requested channel.longpush_msatOur starting balance in the channel if the request is accepted, in milli-satoshi.byte[]temporary_channel_idThe temporary channel ID of the channel requested to be opened.
-
Method Summary
-
Methods inherited from class org.ldk.structs.Event
channel_closed, clone, discard_funding, finalize, funding_generation_ready, open_channel_request, payment_failed, payment_forwarded, payment_path_failed, payment_path_successful, payment_received, payment_sent, pending_htlcs_forwardable, spendable_outputs, write
-
-
-
-
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.
-
-