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