-
-
Save wizardofozzie/3fb8e2d93896f5a8d98b to your computer and use it in GitHub Desktop.
Check which TX confirmed on their own, and which haven't
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
Transactions: | |
504658563f231e71f79312e96da2cc13e779875ac262269b1b8f9f04e527dfc9 | |
a1faf7b6db5bb4ef4a39911ca54152df57758e128cd19fbf16178aea59e06c87 | |
b1346f1ab63dc90cb592028e1f7283f02b54e46afb35b9145ad91ac2a55877be | |
e61458c302d75b8e0925d4bb0da5466c0a76d60dce506cc766b2d3f160b1d0a5 | |
Addresses: | |
1BwJgbMKb7nz4GZ3uTDTbpovzznTrBbyJE | |
1DnJ4rzDpSG5GJsXNyXE7f17rky8wc1RLT | |
1Q6M9Vyuv5RyeuqpgJfCUCWrM2yrSb45BD | |
1NiFhMbV6cQrw4zZScEfkEQ9kofmWfXjNJ | |
1N3ND3wijMp2tR5aYv8abZ8audQLcGM6m4 | |
Conf: | |
c: 1279871e5966b525fef9cb7f84006951ce7ea9333c1159e0b46715e92b1b0817 | |
c: 2c4dbd11ba4cd100fc29fc47101693985fda58b7c6b10821e3485f551f225a15 | |
c: 4cc3e2b6407ae8cdc1fd62cb3235f9c92654277684da8970db19a0169e44c68c | |
c: 4e4f96c5ba416961be347ffc496e8ce12046191ab7fb252e88966ce365d2bc5f | |
c: 7cbce7869f9c1866e38056d41f76aed96c82e0817584b17d5f93dc9b2694e6a9 | |
c: bf171a4d01d00cdfe9af6a81f02033df89a1764f6e89e130d488621eeb8556f1 | |
c: c9c548f7859ba7c4a51b4d17f094b5172095932d06c27d31d95b0b872d630ad6 | |
c: cff8648bc21012879d9f35348fc7b7a51c39d6839595395d8ce036ddc50112f1 | |
c: ebffcc6a3ec7f8519dc68221eac4a83848a2b43f38c4404564397d0fe0747623 | |
c: fe6a10f381772d2dab255fb7525dafaac94ac5510139ce64af4e8811a50271ee | |
c: 516fd6543d063ee4e1cc338c68f9ae3e76a3deb85cc2e83315e7eaf1aa4aea3e | |
c: 773ab9373b8a26914efa5b2ac2ba0b52b6657c59b5e6cb788d1c2b34c5528e22 | |
c: 888c5ccbe3261dac4ac0ba5a64747777871b7b983e2ca1dd17e9fc8afb962519 | |
c: a0744a7beb9cf2a83dd976be621b5a74f4aee52d9f4bf0fbd256d729afb22946 | |
Unconf: | |
Lost: | |
l: 504658563f231e71f79312e96da2cc13e779875ac262269b1b8f9f04e527dfc9 | |
l: a1faf7b6db5bb4ef4a39911ca54152df57758e128cd19fbf16178aea59e06c87 | |
l: b1346f1ab63dc90cb592028e1f7283f02b54e46afb35b9145ad91ac2a55877be | |
Double: | |
d: e61458c302d75b8e0925d4bb0da5466c0a76d60dce506cc766b2d3f160b1d0a5 | |
== |
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
# [rights] Copyright Dan B. (brianddk) 2015 https://github.com/brianddk | |
# [license] Licensed under Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0 | |
# [repo] https://gist.github.com/brianddk/8b5c1bf90c3d1594757e | |
# [version] 0.1 | |
# [tips] 18MDTTiqPM8ZEo29Cig1wfGdkLNtvyorW5 | |
import requests | |
import argparse | |
from bitcoin import * | |
import pprint | |
import sys | |
import fileinput | |
def main(): | |
for line in fileinput.input(): | |
line = line.strip() | |
if 64 != len(line): continue | |
if chk_unconf(line): print 'u:',line | |
def chk_unconf(txId): | |
url = 'https://blockchain.info/rawtx/%s?format=json' % txId | |
req = requests.get(url) | |
if not req.ok: | |
print 'l:',txId | |
return None | |
txn = req.json() | |
if txn.get('double_spend'): | |
print 'd:',txId | |
return None | |
if txn.get('block_height'): | |
print 'c:',txId | |
return None | |
return txn | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment