feat: Add pagination for HSD v7 and return errors when node not connected

This commit is contained in:
2025-01-30 12:32:20 +11:00
parent 1962c9345e
commit 42e8f642b4
7 changed files with 171 additions and 28 deletions

View File

@@ -29,11 +29,10 @@ def domains(domains, mobile=False):
return html
def transactions(txs):
if len(txs) == 0:
return '<tr><td colspan="5">No transactions found</td></tr>'
html = ''
# Reverse the list
txs = txs[::-1]
for tx in txs:
action = "HNS Transfer"
address = tx["outputs"][0]["address"]