Class 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
    • 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