Class ClosingSigned


  • public class ClosingSigned
    extends Object
    A closing_signed 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_fee_satoshis

        public long get_fee_satoshis()
        The proposed total fee for the closing transaction
      • set_fee_satoshis

        public void set_fee_satoshis​(long val)
        The proposed total fee for the closing transaction
      • get_signature

        public byte[] get_signature()
        A signature on the closing transaction
      • set_signature

        public void set_signature​(byte[] val)
        A signature on the closing transaction
      • get_fee_range

        @Nullable
        public ClosingSignedFeeRange get_fee_range()
        The minimum and maximum fees which the sender is willing to accept, provided only by new nodes. Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
      • set_fee_range

        public void set_fee_range​(@Nullable
                                  ClosingSignedFeeRange val)
        The minimum and maximum fees which the sender is willing to accept, provided only by new nodes. Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
      • of

        public static ClosingSigned of​(byte[] channel_id_arg,
                                       long fee_satoshis_arg,
                                       byte[] signature_arg,
                                       ClosingSignedFeeRange fee_range_arg)
        Constructs a new ClosingSigned given each field
      • write

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