@staticmethod
def calcFee(rpcconn, nIn=1, nOut=2):
    from decimal import Decimal
    from decimal import getcontext
    getcontext().prec = 8
    rate = BTC_EstimateSmartFee.process(rpcconn)
    rate = ('%.8f' % (rate / Decimal(100000000.0)))
    return (Decimal(str((((148 * nIn) + (34 * nOut)) + 10))) * Decimal(rate))
@staticmethod
def calcFee(rpcconn, nIn=1, nOut=2):
    from decimal import Decimal
    from decimal import getcontext
    getcontext().prec = 8
    rate = BTC_EstimateSmartFee.process(rpcconn)
    rate = ('%.8f' % (rate / Decimal(100000000.0)))
    return (Decimal(str((((148 * nIn) + (34 * nOut)) + 10))) * Decimal(rate))