Class QueryShortChannelIds


  • public class QueryShortChannelIds
    extends Object
    A query_short_channel_ids message is used to query a peer for routing gossip messages related to one or more short_channel_ids. The query recipient will reply with the latest, if available, channel_announcement, channel_update and node_announcement messages it maintains for the requested short_channel_ids followed by a reply_short_channel_ids_end message. The short_channel_ids sent in this query are encoded. We only support encoding_type=0 uncompressed serialization and do not support encoding_type=1 zlib serialization.
    • Method Detail

      • get_chain_hash

        public byte[] get_chain_hash()
        The genesis hash of the blockchain being queried
      • set_chain_hash

        public void set_chain_hash​(byte[] val)
        The genesis hash of the blockchain being queried
      • set_short_channel_ids

        public void set_short_channel_ids​(long[] val)
        The short_channel_ids that are being queried
      • of

        public static QueryShortChannelIds of​(byte[] chain_hash_arg,
                                              long[] short_channel_ids_arg)
        Constructs a new QueryShortChannelIds given each field
      • write

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