@staticmethod
def genearateInParam(rpcconn, src, dest):
    (utxos, gross, amount) = ([], Decimal('0'), sum(dest.values()))
    redundant = 0
    for addr in src:
        all = BTC_ListUTXO.utxo(rpcconn, addr)
        from utils import recommended
        (selected, aggregate) = recommended(all, amount)
        utxos += selected
        gross += aggregate
        redundant = ((gross - BTC_EstimateSmartFee.calcFee(rpcconn, len(utxos), (len(dest.keys()) + 1))) - amount)
        if (redundant > 0):
            return (True, utxos, redundant)
    return (False, utxos, redundant)
@staticmethod
def genearateInParam(rpcconn, src, dest):
    (utxos, gross, amount) = ([], Decimal('0'), sum(dest.values()))
    redundant = 0
    for addr in src:
        all = BTC_ListUTXO.utxo(rpcconn, addr)
        from utils import recommended
        (selected, aggregate) = recommended(all, amount)
        utxos += selected
        gross += aggregate
        redundant = ((gross - BTC_EstimateSmartFee.calcFee(rpcconn, len(utxos), (len(dest.keys()) + 1))) - amount)
        if (redundant > 0):
            return (True, utxos, redundant)
    return (False, utxos, redundant)