If I send or receive something (with Bitcoin-QT), how can I get the transaction ID of that transaction?
context: I'm playing satoshi bones and they have verification code I can run to make sure they're playing by their own rules. The game is based on a hash of the transaction ID of what I send them, so I just want to give it a check but I need the transaction IDs of my transactions with them.
verification code supplied by satoshi bones that I want to run:
import hashlib import struct def verify(txid,secret,lessthen): sha512 = hashlib.sha512() sha512.update(secret+txid) b = sha512.digest() result = struct.unpack("<H",b+b) if result<lessthen: print "win!" else: print "lose!"