toTxOut(src) {
    const { script } = src.tape.reduce(toTxScript, {
      script: new Script(),
      last: src.tape.length - 1
    })

    return TxOut.fromObject({
      valueBn: new Bn(src.e.v),
      script: script,
      scriptVi: VarInt.fromNumber(script.toBuffer().length)
    })
  }
/**
   * Creates a new TxOut object from the given BOB output.
   *
   * @param {Object} src BOB formatted output
   * @returns {TxOut}
   */
Creates a new TxOut object from the given BOB output.
@param {Object} src BOB formatted output
@returns {TxOut}
Creates a new TxOut object from the given BOB output . @param { Object } src BOB formatted output @returns { TxOut }
toTxOut(src) {
    const { script } = src.tape.reduce(toTxScript, {
      script: new Script(),
      last: src.tape.length - 1
    })
    return TxOut.fromObject({
      valueBn: new Bn(src.e.v),
      script: script,
      scriptVi: VarInt.fromNumber(script.toBuffer().length)
    })
  }
toTxOut ( src ) { const { script } = src . tape . reduce ( toTxScript , { script : new Script ( ) , last : src . tape . length - 1 } ) return TxOut . fromObject ( { valueBn : new Bn ( src . e . v ) , script : script , scriptVi : VarInt . fromNumber ( script . toBuffer ( ) . length ) } ) }
Creates a new TxOut object from the given BOB output.
Creates a new TxOut object from the given BOB output .