Package org.ldk.structs
Class Event.FundingGenerationReady
- java.lang.Object
-
- org.ldk.structs.Event
-
- org.ldk.structs.Event.FundingGenerationReady
-
- Enclosing class:
- Event
public static final class Event.FundingGenerationReady extends Event
Used to indicate that the client should generate a funding transaction with the given parameters and then call [`ChannelManager::funding_transaction_generated`]. Generated in [`ChannelManager`] message handling. Note that *all inputs* in the funding transaction must spend SegWit outputs or your counterparty can steal your funds! [`ChannelManager`]: crate::ln::channelmanager::ChannelManager [`ChannelManager::funding_transaction_generated`]: crate::ln::channelmanager::ChannelManager::funding_transaction_generated
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ldk.structs.Event
Event.ChannelClosed, Event.ChannelPending, Event.ChannelReady, Event.DiscardFunding, Event.FundingGenerationReady, Event.HTLCHandlingFailed, Event.HTLCIntercepted, Event.OpenChannelRequest, Event.PaymentClaimable, Event.PaymentClaimed, Event.PaymentFailed, Event.PaymentForwarded, Event.PaymentPathFailed, Event.PaymentPathSuccessful, Event.PaymentSent, Event.PendingHTLCsForwardable, Event.ProbeFailed, Event.ProbeSuccessful, Event.SpendableOutputs
-
-
Field Summary
Fields Modifier and Type Field Description long
channel_value_satoshis
The value, in satoshis, that the output should have.byte[]
counterparty_node_id
The counterparty's node_id, which you'll need to pass back into [`ChannelManager::funding_transaction_generated`].byte[]
output_script
The script which should be used in the transaction output.byte[]
temporary_channel_id
The random channel_id we picked which you'll need to pass into [`ChannelManager::funding_transaction_generated`].UInt128
user_channel_id
The `user_channel_id` value passed in to [`ChannelManager::create_channel`], or a random value for an inbound channel.
-
Method Summary
-
Methods inherited from class org.ldk.structs.Event
channel_closed, channel_pending, channel_ready, clone, discard_funding, eq, equals, finalize, funding_generation_ready, htlchandling_failed, htlcintercepted, open_channel_request, payment_claimable, payment_claimed, payment_failed, payment_forwarded, payment_path_failed, payment_path_successful, payment_sent, pending_htlcs_forwardable, probe_failed, probe_successful, spendable_outputs, write
-
-
-
-
Field Detail
-
temporary_channel_id
public final byte[] temporary_channel_id
The random channel_id we picked which you'll need to pass into [`ChannelManager::funding_transaction_generated`]. [`ChannelManager::funding_transaction_generated`]: crate::ln::channelmanager::ChannelManager::funding_transaction_generated
-
counterparty_node_id
public final byte[] counterparty_node_id
The counterparty's node_id, which you'll need to pass back into [`ChannelManager::funding_transaction_generated`]. [`ChannelManager::funding_transaction_generated`]: crate::ln::channelmanager::ChannelManager::funding_transaction_generated
-
channel_value_satoshis
public final long channel_value_satoshis
The value, in satoshis, that the output should have.
-
output_script
public final byte[] output_script
The script which should be used in the transaction output.
-
user_channel_id
public final UInt128 user_channel_id
The `user_channel_id` value passed in to [`ChannelManager::create_channel`], or a random value for an inbound channel. This may be zero for objects serialized with LDK versions prior to 0.0.113. [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
-
-