Class UnsignedChannelAnnouncement


  • public class UnsignedChannelAnnouncement
    extends Object
    The unsigned part of a channel_announcement
    • Method Detail

      • get_features

        public ChannelFeatures get_features()
        The advertised channel features
      • set_features

        public void set_features​(ChannelFeatures val)
        The advertised channel features
      • get_chain_hash

        public byte[] get_chain_hash()
        The genesis hash of the blockchain where the channel is to be opened
      • set_chain_hash

        public void set_chain_hash​(byte[] val)
        The genesis hash of the blockchain where the channel is to be opened
      • get_short_channel_id

        public long get_short_channel_id()
        The short channel ID
      • set_short_channel_id

        public void set_short_channel_id​(long val)
        The short channel ID
      • get_node_id_1

        public byte[] get_node_id_1()
        One of the two node_ids which are endpoints of this channel
      • set_node_id_1

        public void set_node_id_1​(byte[] val)
        One of the two node_ids which are endpoints of this channel
      • get_node_id_2

        public byte[] get_node_id_2()
        The other of the two node_ids which are endpoints of this channel
      • set_node_id_2

        public void set_node_id_2​(byte[] val)
        The other of the two node_ids which are endpoints of this channel
      • get_bitcoin_key_1

        public byte[] get_bitcoin_key_1()
        The funding key for the first node
      • set_bitcoin_key_1

        public void set_bitcoin_key_1​(byte[] val)
        The funding key for the first node
      • get_bitcoin_key_2

        public byte[] get_bitcoin_key_2()
        The funding key for the second node
      • set_bitcoin_key_2

        public void set_bitcoin_key_2​(byte[] val)
        The funding key for the second node
      • write

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