def _get_transaction(session, txid): # TODO: Iterate all pages # 900 is slightly arbitrary but currently the backend is limited to 30 pages of 30 details = {'subaccount': 0, 'first': 0, 'count': 900} transactions = _gdk_resolve(gdk.get_transactions(session.session_obj, json.dumps(details))) transactions = transactions['transactions'] for transaction in transactions: if transaction['txhash'] == txid: return transaction raise click.ClickException("Previous transaction not found")
def gettransactions(session, details): return gdk.get_transactions(session.session_obj, json.dumps(details))
def gettransactions(session, summary, details): """Get transactions associated with the wallet.""" result = gdk.get_transactions(session.session_obj, json.dumps(details)) result = gdk_resolve(result) result = _txlist_summary(result) if summary else format_output(result) click.echo(result)
def gettransactions(session, summary, details): result = gdk.get_transactions(session.session_obj, json.dumps(details)) result = gdk_resolve(result) result = _txlist_summary(result) if summary else format_output(result) click.echo(result)