def post(self):
    btc_rpc_connection = AuthServiceProxy(RPC_URL)
    data = None
    try:
        minconf = (int(self.get_argument('minconf')) if (not (self.get_argument('minconf') == '')) else 1)
        maxconf = (int(self.get_argument('maxconf')) if (not (self.get_argument('maxconf') == '')) else 9999999)
        addr = self.get_argument('address')
        data = BTC_ListUTXO.utxo(btc_rpc_connection, addr, minconf, maxconf)
        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_GetUTXO error:{0} in {1}'.format(e, get_linenumber()))
def post(self):
    btc_rpc_connection = AuthServiceProxy(RPC_URL)
    data = None
    try:
        minconf = (int(self.get_argument('minconf')) if (not (self.get_argument('minconf') == )) else 1)
        maxconf = (int(self.get_argument('maxconf')) if (not (self.get_argument('maxconf') == )) else 9999999)
        addr = self.get_argument('address')
        data = BTC_ListUTXO.utxo(btc_rpc_connection, addr, minconf, maxconf)
        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_GetUTXO error:{0} in {1}'.format(e, get_linenumber()))