parameters: (self, ustxinList, dtxoList, lockTime=0)
return_statement: return self
docstring: All custom sequence numbers are set in the individual ustxi entries
docstring_summary: All custom sequence numbers are set in the individual ustxi entries
docstring_tokens: All custom sequence numbers are set in the individual ustxi entries
function: def createFromUnsignedTxIO(self, ustxinList, dtxoList, lockTime=0):
        """
        All custom sequence numbers are set in the individual ustxi entries
        """
  
        nIn  = len(ustxinList)
        nOut = len(dtxoList)
  
        self.pytxObj = PyTx()
        self.pytxObj.version  = UNSIGNED_TX_VERSION
        self.pytxObj.lockTime = lockTime
        self.pytxObj.inputs   = [None]*nIn
        self.pytxObj.outputs  = [None]*nOut
  
  
        for iin,ustxi in enumerate(ustxinList):
           self.pytxObj.inputs[iin] = PyTxIn()
           self.pytxObj.inputs[iin].outpoint  = ustxi.outpoint
           self.pytxObj.inputs[iin].binScript = ''
           self.pytxObj.inputs[iin].intSeq    = ustxi.sequence
  
  
        for iout,dtxo in enumerate(dtxoList):
           self.pytxObj.outputs[iout] = PyTxOut()
           self.pytxObj.outputs[iout].value     = dtxo.value
           self.pytxObj.outputs[iout].binScript = dtxo.binScript
  
        # Create copies of the input lists
        self.ustxInputs = ustxinList[:]
        self.decorTxOuts = dtxoList[:]
  
        # Finally issue a warning if this selection is super high fee
        totalIn  = sum([ustxi.value for ustxi in ustxinList])
        totalOut = sum([dtxo.value  for dtxo  in dtxoList  ])
        if totalIn - totalOut > 100*MIN_RELAY_TX_FEE:
           LOGWARN('Exceptionally high fee in createFromUnsignedTxIO')
           LOGWARN('TotalInputs  = %s BTC', coin2strNZS(totalIn))
           LOGWARN('TotalOutputs = %s BTC', coin2strNZS(totalOut))
           LOGWARN('Computed Fee = %s BTC', coin2strNZS(totalIn-totalOut))
        elif totalIn - totalOut < 0:
           raise ValueError('Supplied inputs are less than the supplied outputs')
  
        rawTxNoSigs = self.pytxObj.serialize()
        self.uniqueIDB58 = binary_to_base58(hash256(rawTxNoSigs))[:8]
        self.asciiID = self.uniqueIDB58
        return self
function_tokens: def createFromUnsignedTxIO ( self , ustxinList , dtxoList , lockTime = 0 ) : nIn = len ( ustxinList ) nOut = len ( dtxoList ) self . pytxObj = PyTx ( ) self . pytxObj . version = UNSIGNED_TX_VERSION self . pytxObj . lockTime = lockTime self . pytxObj . inputs = [ None ] * nIn self . pytxObj . outputs = [ None ] * nOut for iin , ustxi in enumerate ( ustxinList ) : self . pytxObj . inputs [ iin ] = PyTxIn ( ) self . pytxObj . inputs [ iin ] . outpoint = ustxi . outpoint self . pytxObj . inputs [ iin ] . binScript = '' self . pytxObj . inputs [ iin ] . intSeq = ustxi . sequence for iout , dtxo in enumerate ( dtxoList ) : self . pytxObj . outputs [ iout ] = PyTxOut ( ) self . pytxObj . outputs [ iout ] . value = dtxo . value self . pytxObj . outputs [ iout ] . binScript = dtxo . binScript # Create copies of the input lists self . ustxInputs = ustxinList [ : ] self . decorTxOuts = dtxoList [ : ] # Finally issue a warning if this selection is super high fee totalIn = sum ( [ ustxi . value for ustxi in ustxinList ] ) totalOut = sum ( [ dtxo . value for dtxo in dtxoList ] ) if totalIn - totalOut > 100 * MIN_RELAY_TX_FEE : LOGWARN ( 'Exceptionally high fee in createFromUnsignedTxIO' ) LOGWARN ( 'TotalInputs  = %s BTC' , coin2strNZS ( totalIn ) ) LOGWARN ( 'TotalOutputs = %s BTC' , coin2strNZS ( totalOut ) ) LOGWARN ( 'Computed Fee = %s BTC' , coin2strNZS ( totalIn - totalOut ) ) elif totalIn - totalOut < 0 : raise ValueError ( 'Supplied inputs are less than the supplied outputs' ) rawTxNoSigs = self . pytxObj . serialize ( ) self . uniqueIDB58 = binary_to_base58 ( hash256 ( rawTxNoSigs ) ) [ : 8 ] self . asciiID = self . uniqueIDB58 return self