Class Shutdown


  • public class Shutdown
    extends Object
    A shutdown message to be sent or received from a peer
    • Method Detail

      • get_channel_id

        public byte[] get_channel_id()
        The channel ID
      • set_channel_id

        public void set_channel_id​(byte[] val)
        The channel ID
      • get_scriptpubkey

        public byte[] get_scriptpubkey()
        The destination of this peer's funds on closing. Must be in one of these forms: p2pkh, p2sh, p2wpkh, p2wsh.
      • set_scriptpubkey

        public void set_scriptpubkey​(byte[] val)
        The destination of this peer's funds on closing. Must be in one of these forms: p2pkh, p2sh, p2wpkh, p2wsh.
      • of

        public static Shutdown of​(byte[] channel_id_arg,
                                  byte[] scriptpubkey_arg)
        Constructs a new Shutdown given each field
      • clone

        public Shutdown clone()
        Creates a copy of the Shutdown
        Overrides:
        clone in class Object
      • write

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