Created
November 24, 2014 01:17
-
-
Save kanzure/2ab20d287d86638227db to your computer and use it in GitHub Desktop.
just snooping around the blockchain, don't mind me
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bitcoin.core import ( | |
lx, | |
b2lx, | |
CTransaction, | |
) | |
import bitcoin.rpc | |
proxy = bitcoin.rpc.Proxy() | |
txid = lx("4c13dfc036048cbcd978f11625059efd47f8f26166f71053c6cba1fc4a63e4a8") | |
while True: | |
tx = proxy.getrawtransaction(txid) | |
txid = tx.vin[0].prevout.hash | |
print("txid: {}".format(b2lx(txid))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whoops, that ends up at a faucet.