mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-18 13:08:54 +02:00
Bug fixes
This commit is contained in:
parent
76465716fe
commit
305513fafd
1 changed files with 24 additions and 5 deletions
29
donation.py
29
donation.py
|
|
@ -2,27 +2,39 @@ import requests
|
|||
import qrcode
|
||||
|
||||
|
||||
qr = qrcode.QRCode(
|
||||
|
||||
|
||||
def donationPN():
|
||||
qr = qrcode.QRCode(
|
||||
version=1,
|
||||
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
||||
box_size=10,
|
||||
border=4,
|
||||
)
|
||||
|
||||
|
||||
def donationPN():
|
||||
)
|
||||
url = 'PM8TJbSH9iCPZ2bz9D7MTHpaCnT35Pm4kfJ6gRccoKmMjz5qsQ6rBWpBRCnJHMpTo8kc5K2SF4MADA9f4uKwc5iC8A3FtKJc7eb5wFDF3vcuSfneaC15'
|
||||
qr.add_data(url)
|
||||
qr.print_ascii()
|
||||
print("PayNym: " + url)
|
||||
|
||||
def donationAddr():
|
||||
qr = qrcode.QRCode(
|
||||
version=1,
|
||||
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
||||
box_size=10,
|
||||
border=4,
|
||||
)
|
||||
url = 'bc1qf5c88chttajazrlwudt7x9xx5u0qf8y2lguj62'
|
||||
qr.add_data(url)
|
||||
qr.print_ascii()
|
||||
print("Bitcoin Address Bech32: " + url)
|
||||
|
||||
def donationLN():
|
||||
qr = qrcode.QRCode(
|
||||
version=1,
|
||||
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
||||
box_size=10,
|
||||
border=4,
|
||||
)
|
||||
url = 'https://api.tippin.me/v1/public/addinvoice/royalfield370'
|
||||
response = requests.get(url)
|
||||
responseB = str(response.text)
|
||||
|
|
@ -39,7 +51,14 @@ def donationLN():
|
|||
print("LND Invoice: " + ln1)
|
||||
|
||||
def decodeQR():
|
||||
qr = qrcode.QRCode(
|
||||
version=1,
|
||||
error_correction=qrcode.constants.ERROR_CORRECT_L,
|
||||
box_size=10,
|
||||
border=4,
|
||||
)
|
||||
url = input("Insert your Bitcoin Address to show the QRCode: ")
|
||||
qr.add_data(url)
|
||||
qr.print_ascii()
|
||||
print("Bitcoin Address: " + url)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue