Class FundingCreated


  • public class FundingCreated
    extends Object
    A [`funding_created`] message to be sent to or received from a peer. [`funding_created`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-funding_created-message
    • Method Detail

      • get_temporary_channel_id

        public byte[] get_temporary_channel_id()
        A temporary channel ID, until the funding is established
      • set_temporary_channel_id

        public void set_temporary_channel_id​(byte[] val)
        A temporary channel ID, until the funding is established
      • get_funding_txid

        public byte[] get_funding_txid()
        The funding transaction ID
      • set_funding_txid

        public void set_funding_txid​(byte[] val)
        The funding transaction ID
      • get_funding_output_index

        public short get_funding_output_index()
        The specific output index funding this channel
      • set_funding_output_index

        public void set_funding_output_index​(short val)
        The specific output index funding this channel
      • get_signature

        public byte[] get_signature()
        The signature of the channel initiator (funder) on the initial commitment transaction
      • set_signature

        public void set_signature​(byte[] val)
        The signature of the channel initiator (funder) on the initial commitment transaction
      • of

        public static FundingCreated of​(byte[] temporary_channel_id_arg,
                                        byte[] funding_txid_arg,
                                        short funding_output_index_arg,
                                        byte[] signature_arg)
        Constructs a new FundingCreated given each field
      • eq

        public boolean eq​(FundingCreated b)
        Checks if two FundingCreateds contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • write

        public byte[] write()
        Serialize the FundingCreated object into a byte array which can be read by FundingCreated_read