Class TxAddInput


  • public class TxAddInput
    extends Object
    A tx_add_input message for adding an input 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 input, 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 input, which is even for initiators and odd for non-initiators.
      • get_prevtx

        public TransactionU16LenLimited get_prevtx()
        Serialized transaction that contains the output this input spends to verify that it is non malleable.
      • set_prevtx

        public void set_prevtx​(TransactionU16LenLimited val)
        Serialized transaction that contains the output this input spends to verify that it is non malleable.
      • get_prevtx_out

        public int get_prevtx_out()
        The index of the output being spent
      • set_prevtx_out

        public void set_prevtx_out​(int val)
        The index of the output being spent
      • get_sequence

        public int get_sequence()
        The sequence number of this input
      • set_sequence

        public void set_sequence​(int val)
        The sequence number of this input
      • of

        public static TxAddInput of​(byte[] channel_id_arg,
                                    long serial_id_arg,
                                    TransactionU16LenLimited prevtx_arg,
                                    int prevtx_out_arg,
                                    int sequence_arg)
        Constructs a new TxAddInput given each field
      • eq

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