def post(self):
    btc_rpc_connection = AuthServiceProxy(RPC_URL)
    try:
        src = self.get_argument_ex('src')
        dest = self.get_argument_ex('dest')
        if (not isinstance(src, list)):
            self.write(json.dumps(BaseHandler.error_ret_with_data(('error: %s' % 'src must be json list'))))
            return
        if (not isinstance(dest, list)):
            self.write(json.dumps(BaseHandler.error_ret_with_data(('error: %s' % 'dest must be json list'))))
            return
        (ret, rsp) = BTC_CreateRawTransactionEx_Collection.process(btc_rpc_connection, src, dest)
        if (not ret):
            self.write(json.dumps(BaseHandler.error_ret_with_data(rsp)))
            return
        self.write(json.dumps(BaseHandler.success_ret_with_data(rsp), default=decimal_default))
    except Exception as e:
        self.write(json.dumps(BaseHandler.error_ret_with_data(('error: %s' % e))))
        logging.error('BTC_CreateRawTransactionEx error:{0} in {1}'.format(e, get_linenumber()))
def post(self):
    btc_rpc_connection = AuthServiceProxy(RPC_URL)
    try:
        src = self.get_argument_ex('src')
        dest = self.get_argument_ex('dest')
        if (not isinstance(src, list)):
            self.write(json.dumps(BaseHandler.error_ret_with_data(('error: %s' % 'src must be json list'))))
            return
        if (not isinstance(dest, list)):
            self.write(json.dumps(BaseHandler.error_ret_with_data(('error: %s' % 'dest must be json list'))))
            return
        (ret, rsp) = BTC_CreateRawTransactionEx_Collection.process(btc_rpc_connection, src, dest)
        if (not ret):
            self.write(json.dumps(BaseHandler.error_ret_with_data(rsp)))
            return
        self.write(json.dumps(BaseHandler.success_ret_with_data(rsp), default=decimal_default))
    except Exception as e:
        self.write(json.dumps(BaseHandler.error_ret_with_data(('error: %s' % e))))
        logging.error('BTC_CreateRawTransactionEx error:{0} in {1}'.format(e, get_linenumber()))