def get(self):
    btc_rpc_connection = AuthServiceProxy(RPC_URL)
    try:
        account = (self.get_argument('account') if self.get_argument('account') else '*')
        tx_counts = (int(self.get_argument('count')) if self.get_argument('count') else 10)
        skips = (int(self.get_argument('skips')) if self.get_argument('skips') else 0)
        data = BTC_ListTransactions.process(btc_rpc_connection, account, tx_counts, skips)
        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_ListTransActions error:{0} in {1}'.format(e, get_linenumber()))
def get(self):
    btc_rpc_connection = AuthServiceProxy(RPC_URL)
    try:
        account = (self.get_argument('account') if self.get_argument('account') else '*')
        tx_counts = (int(self.get_argument('count')) if self.get_argument('count') else 10)
        skips = (int(self.get_argument('skips')) if self.get_argument('skips') else 0)
        data = BTC_ListTransactions.process(btc_rpc_connection, account, tx_counts, skips)
        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_ListTransActions error:{0} in {1}'.format(e, get_linenumber()))