def get(self):
    try:
        rpcconn = AuthServiceProxy(RPC_URL)
        data = BTC_EstimateSmartFee.calcFee(rpcconn)
        data = ('%.8f' % data)
        self.write(json.dumps(BaseHandler.success_ret_with_data(data), default=decimal_default))
    except Exception as e:
        self.write(json.dumps(BaseHandler.error_ret_with_data(('error: %s' % e))))
        logging.error('BTC_EstimateSmartFee error:{0} in {1}'.format(e, get_linenumber()))
    pass
def get(self):
    try:
        rpcconn = AuthServiceProxy(RPC_URL)
        data = BTC_EstimateSmartFee.calcFee(rpcconn)
        data = ('%.8f' % data)
        self.write(json.dumps(BaseHandler.success_ret_with_data(data), default=decimal_default))
    except Exception as e:
        self.write(json.dumps(BaseHandler.error_ret_with_data(('error: %s' % e))))
        logging.error('BTC_EstimateSmartFee error:{0} in {1}'.format(e, get_linenumber()))
    pass