Skip to content

Instantly share code, notes, and snippets.

@kanzure
Created November 24, 2014 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanzure/2ab20d287d86638227db to your computer and use it in GitHub Desktop.
Save kanzure/2ab20d287d86638227db to your computer and use it in GitHub Desktop.
just snooping around the blockchain, don't mind me
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)))
@kanzure
Copy link
Author

kanzure commented Nov 24, 2014

Whoops, that ends up at a faucet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment