Class TxAddOutput


  • public class TxAddOutput
    extends Object
    A tx_add_output message for adding an output during interactive transaction construction.
    • 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_serial_id

        public long get_serial_id()
        A randomly chosen unique identifier for this output, which is even for initiators and odd for non-initiators.
      • set_serial_id

        public void set_serial_id​(long val)
        A randomly chosen unique identifier for this output, which is even for initiators and odd for non-initiators.
      • get_sats

        public long get_sats()
        The satoshi value of the output
      • set_sats

        public void set_sats​(long val)
        The satoshi value of the output
      • get_script

        public byte[] get_script()
        The scriptPubKey for the output
      • set_script

        public void set_script​(byte[] val)
        The scriptPubKey for the output
      • of

        public static TxAddOutput of​(byte[] channel_id_arg,
                                     long serial_id_arg,
                                     long sats_arg,
                                     byte[] script_arg)
        Constructs a new TxAddOutput given each field
      • eq

        public boolean eq​(TxAddOutput b)
        Checks if two TxAddOutputs 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 TxAddOutput object into a byte array which can be read by TxAddOutput_read