Compare commits

...

2 Commits

Author SHA1 Message Date
poka b89456a9b4 Merge branch 'g1walletbot' 2023-09-09 00:16:01 +02:00
Kapis a13723fa3c showing hash in json output 2023-03-16 18:45:34 +01:00
1 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class History:
outputs
comment
writtenTime
hash
}
}
}
@ -59,6 +60,7 @@ class History:
outputs
receivedTime
blockstamp
hash
}
sending {
currency
@ -67,6 +69,7 @@ class History:
outputs
receivedTime
blockstamp
hash
}
}
balance(script: $script) {
@ -138,6 +141,7 @@ class History:
trans[i].append(transaction['comment'])
trans[i].append(base)
trans[i].append(transaction['blockstamp'])
trans[i].append(transaction['hash'])
i += 1
# Parse transactions in mempool
@ -169,6 +173,7 @@ class History:
trans[i].append(transaction['comment'])
trans[i].append(base)
trans[i].append(transaction['blockstamp'])
trans[i].append(transaction['hash'])
i += 1
# Order transactions by date
@ -270,6 +275,7 @@ class History:
dailyJSON[i]['amountUD'] = trans[4]
dailyJSON[i]['comment'] = trans[5]
dailyJSON[i]['blockstamp'] = trans[7]
dailyJSON[i]['hash'] = trans[8]
dailyJSON = json.dumps(dailyJSON, indent=2)
# If we want to write JSON to a file