public TransactionInput addInput(TransactionOutput from){
  return addInput(new TransactionInput(params,this,from));
}

public TransactionInput addInput ( TransactionOutput from ) { return addInput ( new TransactionInput ( params , this , from ) ) ; }
adds an input to this transaction that imports value from the given output . note that this input is not complete and after every input is added with addinput ( ) and every output is added with addoutput ( ) , signinputs ( ) must be called to finalize the transaction and finish the inputs off . otherwise it won ' t be accepted by the network . returns the newly created input .
