toTxIn(src) {
    const script = toTxScript(src)
    return TxIn.fromObject({
      txHashBuf: Buffer.from(src.e.h, 'hex').reverse(),
      txOutNum: src.e.i,
      nSequence: src.seq,
      script: script,
      scriptVi: VarInt.fromNumber(script.toBuffer().length)
    })
  }
/**
   * Creates a new TxIn object from the given TXO input.
   *
   * @param {Object} src TXO formatted input
   * @returns {TxIn}
   */
Creates a new TxIn object from the given TXO input.
@param {Object} src TXO formatted input
@returns {TxIn}
Creates a new TxIn object from the given TXO input . @param { Object } src TXO formatted input @returns { TxIn }
toTxIn(src) {
    const script = toTxScript(src)
    return TxIn.fromObject({
      txHashBuf: Buffer.from(src.e.h, 'hex').reverse(),
      txOutNum: src.e.i,
      nSequence: src.seq,
      script: script,
      scriptVi: VarInt.fromNumber(script.toBuffer().length)
    })
  }
toTxIn ( src ) { const script = toTxScript ( src ) return TxIn . fromObject ( { txHashBuf : Buffer . from ( src . e . h , 'hex' ) . reverse ( ) , txOutNum : src . e . i , nSequence : src . seq , script : script , scriptVi : VarInt . fromNumber ( script . toBuffer ( ) . length ) } ) }
Creates a new TxIn object from the given TXO input.
Creates a new TxIn object from the given TXO input .