Class TxIn


  • public class TxIn
    extends Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      byte[] previous_txid
      The txid this input is spending
      int previous_vout
      The output index within the spent transaction of the output this input is spending
      byte[] script_sig
      The script_sig in this input
      int sequence
      The transaction output's sequence number
      byte[] witness
      The witness in this input, in serialized form
    • Constructor Summary

      Constructors 
      Constructor Description
      TxIn​(byte[] witness, byte[] script_sig, int sequence, byte[] previous_txid, int previous_vout)
      Constructs a new TxIn, note that previous_txid must be exactly 32 bytes
    • Field Detail

      • witness

        public final byte[] witness
        The witness in this input, in serialized form
      • script_sig

        public final byte[] script_sig
        The script_sig in this input
      • sequence

        public final int sequence
        The transaction output's sequence number
      • previous_txid

        public final byte[] previous_txid
        The txid this input is spending
      • previous_vout

        public final int previous_vout
        The output index within the spent transaction of the output this input is spending
    • Constructor Detail

      • TxIn

        public TxIn​(byte[] witness,
                    byte[] script_sig,
                    int sequence,
                    byte[] previous_txid,
                    int previous_vout)
        Constructs a new TxIn, note that previous_txid must be exactly 32 bytes