ankr-queries update

This commit is contained in:
auricom
2023-03-20 12:15:12 +01:00
parent f9dc9e62b3
commit 5892fbd525
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
addresses:
- address: "0xd14a28667d263efda2033ceb3b466399723c9c9c"
memo: "@Defi_Maestro"
- address: "0xc880e1befe692db8b1c71357130f25630239e6fc"
memo: "@Defi_Maestro2"

View File

@@ -41,6 +41,7 @@ def send_pushover_notification(title, message):
payload = {
'token': PUSHOVER_API_TOKEN,
'user': PUSHOVER_USER_KEY,
'html': 1,
'title': title,
'message': message
}
@@ -85,7 +86,7 @@ def process_new_transactions(address, memo):
send_pushover_notification(
f"New Transaction: {memo}",
f"Transaction Hash: {tx_hash}\nBlockchain: {blockchain}\nTimestamp: {timestamp}"
f"Transaction Hash: <a href=\"http://www.debank.com/profile/{address}/history\">{tx_hash}</a><br>Blockchain: {blockchain}<br>Timestamp: {timestamp}"
)
# Main function