src/primitives/input.js
function Input(options) {
  if (!(this instanceof Input))
    return new Input(options);

  this.prevout = new Outpoint();
  this.script = new Script();
  this.sequence = 0xffffffff;
  this.witness = new Witness();

  if (options)
    this.fromOptions(options);
}
function Input(options) {
  if (!(this instanceof Input))
    return new Input(options);

  this.prevout = new Outpoint();
  this.script = new Script();
  this.sequence = 0xffffffff;
  this.witness = new Witness();

  if (options)
    this.fromOptions(options);
}
function Input ( options ) { if ( ! ( this instanceof Input ) ) return new Input ( options ) ; this . prevout = new Outpoint ( ) ; this . script = new Script ( ) ; this . sequence = 0xffffffff ; this . witness = new Witness ( ) ; if ( options ) this . fromOptions ( options ) ; }
Represents a transaction input.
@alias module:primitives.Input
@constructor
@param {NakedInput} options
@property {Outpoint} prevout - Outpoint.
@property {Script} script - Input script / scriptSig.
@property {Number} sequence - nSequence.
@property {Witness} witness - Witness (empty if not present).
Represents a transaction input .