2020-06-04 14:28:45 -03:00
|
|
|
#Developer: Curly60e
|
|
|
|
|
#PyBLOCK its a clock of the Bitcoin blockchain.
|
2020-07-25 10:52:44 -03:00
|
|
|
|
2020-06-04 14:28:45 -03:00
|
|
|
|
2020-05-20 20:29:48 -03:00
|
|
|
import requests
|
|
|
|
|
import qrcode
|
2026-04-01 12:13:33 -03:00
|
|
|
# nodeconnection not used in this module
|
2020-05-20 20:29:48 -03:00
|
|
|
|
|
|
|
|
def donationAddr():
|
2020-05-20 22:34:03 -03:00
|
|
|
qr = qrcode.QRCode(
|
|
|
|
|
version=1,
|
|
|
|
|
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
|
|
|
|
box_size=10,
|
|
|
|
|
border=4,
|
|
|
|
|
)
|
2024-07-23 11:55:56 -03:00
|
|
|
url = 'bc1prwjajvvax2rkm2wzelpfzzc2ncywht69pswnurhzdfj9qujhyxzsqpd3eg'
|
2020-05-25 19:35:24 -03:00
|
|
|
print("\033[1;30;47m")
|
2020-05-20 20:29:48 -03:00
|
|
|
qr.add_data(url)
|
|
|
|
|
qr.print_ascii()
|
2020-05-25 19:35:24 -03:00
|
|
|
print("\033[0;37;40m")
|
2020-06-27 19:26:53 -03:00
|
|
|
qr.clear()
|
2022-03-19 17:43:22 +00:00
|
|
|
print(f"Bitcoin Address Bech32: {url}")
|
2020-06-19 17:51:28 -03:00
|
|
|
|
2021-04-14 00:08:55 -03:00
|
|
|
def donationPayNym():
|
|
|
|
|
qr = qrcode.QRCode(
|
|
|
|
|
version=1,
|
|
|
|
|
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
|
|
|
|
box_size=10,
|
|
|
|
|
border=4,
|
|
|
|
|
)
|
|
|
|
|
url = 'PM8TJhNTTq3YVocXuPtLjKx7pKkdUxqwTerWJ2j2a7dNitgyMmBPN6gK61yE17N2vgvQvKYokXktt6D6GZFTmocvDJhaUJfHt7ehEMmthjsT3NQHseFM'
|
|
|
|
|
print("\033[1;30;47m")
|
|
|
|
|
qr.add_data(url)
|
|
|
|
|
qr.print_ascii()
|
|
|
|
|
print("\033[0;37;40m")
|
|
|
|
|
qr.clear()
|
2022-03-19 17:43:22 +00:00
|
|
|
print(f"PayNym: {url}")
|
2021-04-14 00:08:55 -03:00
|
|
|
|
2020-06-25 17:59:14 -03:00
|
|
|
#Dev LN
|
2020-05-20 20:29:48 -03:00
|
|
|
def donationLN():
|
2020-05-20 22:34:03 -03:00
|
|
|
qr = qrcode.QRCode(
|
|
|
|
|
version=1,
|
|
|
|
|
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
|
|
|
|
box_size=10,
|
|
|
|
|
border=4,
|
|
|
|
|
)
|
2024-07-23 11:55:56 -03:00
|
|
|
url = 'holycherry05@phoenixwallet.me'
|
2022-03-19 20:54:22 +01:00
|
|
|
print("\033[1;30;47m")
|
|
|
|
|
qr.add_data(url)
|
|
|
|
|
qr.print_ascii()
|
|
|
|
|
print("\033[0;37;40m")
|
|
|
|
|
qr.clear()
|
|
|
|
|
print(f"Lightning Address: {url}")
|
2020-05-20 20:29:48 -03:00
|
|
|
|
2020-06-25 17:59:14 -03:00
|
|
|
#Tester Address
|
2020-05-23 19:54:41 -03:00
|
|
|
def donationAddrTst():
|
|
|
|
|
qr = qrcode.QRCode(
|
|
|
|
|
version=1,
|
|
|
|
|
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
|
|
|
|
box_size=10,
|
|
|
|
|
border=4,
|
|
|
|
|
)
|
|
|
|
|
url = 'bc1qwtzwu2evtchkvnf3ey6520yprsyv7vrjvhula5'
|
2020-05-25 19:35:24 -03:00
|
|
|
print("\033[1;30;47m")
|
2020-05-23 19:54:41 -03:00
|
|
|
qr.add_data(url)
|
|
|
|
|
qr.print_ascii()
|
2020-05-25 19:35:24 -03:00
|
|
|
print("\033[0;37;40m")
|
2020-06-27 19:26:53 -03:00
|
|
|
qr.clear()
|
2022-03-19 17:43:22 +00:00
|
|
|
print(f"Bitcoin Address Bech32: {url}")
|
2020-06-19 17:51:28 -03:00
|
|
|
|
2020-06-27 19:26:53 -03:00
|
|
|
#Tester LN
|
2020-05-23 19:54:41 -03:00
|
|
|
def donationLNTst():
|
|
|
|
|
qr = qrcode.QRCode(
|
|
|
|
|
version=1,
|
|
|
|
|
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
|
|
|
|
box_size=10,
|
|
|
|
|
border=4,
|
|
|
|
|
)
|
2022-03-19 20:54:22 +01:00
|
|
|
url = 'sn@getalby.com'
|
|
|
|
|
print("\033[1;30;47m")
|
|
|
|
|
qr.add_data(url)
|
|
|
|
|
qr.print_ascii()
|
|
|
|
|
print("\033[0;37;40m")
|
|
|
|
|
qr.clear()
|
|
|
|
|
print(f"Lightning Address: {url}")
|
2020-05-23 19:54:41 -03:00
|
|
|
|
2020-05-20 20:29:48 -03:00
|
|
|
def decodeQR():
|
2020-05-20 22:34:03 -03:00
|
|
|
qr = qrcode.QRCode(
|
|
|
|
|
version=1,
|
|
|
|
|
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
|
|
|
|
box_size=10,
|
|
|
|
|
border=4,
|
|
|
|
|
)
|
2020-05-20 20:29:48 -03:00
|
|
|
url = input("Insert your Bitcoin Address to show the QRCode: ")
|
2020-05-25 19:35:24 -03:00
|
|
|
print("\033[1;30;47m")
|
2020-05-20 20:29:48 -03:00
|
|
|
qr.add_data(url)
|
|
|
|
|
qr.print_ascii()
|
2020-05-25 19:35:24 -03:00
|
|
|
print("\033[0;37;40m")
|
2020-06-27 19:26:53 -03:00
|
|
|
qr.clear()
|
2022-03-19 17:43:22 +00:00
|
|
|
print(f"Bitcoin Address: {url}")
|