diff --git a/PyBlock.py b/PyBlock.py index a9f4535..2d8cfd5 100644 --- a/PyBlock.py +++ b/PyBlock.py @@ -107,7 +107,12 @@ def untxsConn(): ab = abc['vout'] for key, value in enumerate(ab): knx = value['scriptPubKey'] - print("TxID: \u001b[38;5;40m{} \u001b[31;1m| Amount: \u001b[38;5;202m{} BTC \u001b[31;1m| Address: \u001b[33;1m{}\u001b[31;1m | Type: \u001b[31;1m{}".format(b,value['value'],knx['address'],knx['type'])) + knz = 'address' + if knz in knx: + print("TxID: \u001b[38;5;40m{} \033[0;37;40m| \u001b[31;1mAmount: \u001b[38;5;202m{} BTC \033[0;37;40m| \u001b[31;1mAddress: \u001b[33;1m{}\033[0;37;40m | \u001b[31;1mType: \u001b[31;1m{}\u001b[33;1m".format(b,value['value'],knx['address'],knx['type'])) + else: + print("TxID: \u001b[38;5;40m{} \033[0;37;40m| \u001b[31;1mAmount: \u001b[38;5;202m{} BTC \033[0;37;40m| \u001b[31;1mOP_RETURN: \u001b[38;5;27m{}\033[0;37;40m | \u001b[31;1mType: \u001b[31;1m{}\u001b[33;1m".format(b,value['value'],knx['asm'],knx['type'])) + pass input("\n\033[?25l\033[0;37;40m\a\n\033[AContinue...\033[A") except: pass