Created
August 24, 2017 06:07
-
-
Save narcelio/20c76ebb921c91580ba1626bd03e432f to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# (c) Copyright 2017 by Narcelio Filho <[email protected]> | |
# pip install git+https://github.com/petertodd/python-bitcoinlib | |
import bitcoin.rpc | |
import socket | |
node = bitcoin.rpc.Proxy() | |
i = 1 | |
for height in range(481824, 481834+1): | |
block_hash = node.getblockhash(height) | |
block = node.getblock(block_hash) | |
for tx in block.vtx: | |
if tx.is_coinbase(): | |
continue | |
if tx.has_witness(): | |
print(i, tx.GetTxid()[::-1].hex()) | |
i += 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment