Bump breez-sdk snippet dependency to 0.2.14

This commit is contained in:
ok300
2024-01-23 11:52:51 +01:00
parent 69ebd18b72
commit 0c40b26e92
12 changed files with 46 additions and 38 deletions

View File

@@ -3,13 +3,14 @@ import breez_sdk
def send_spontaneous_payment(sdk_services):
# ANCHOR: send-spontaneous-payment
node_id = "..."
amount_msat = 300000
try:
# ANCHOR: send-spontaneous-payment
node_id = "..."
amount_msat = 3000000
req = breez_sdk.SendSpontaneousPaymentRequest(node_id,amount_msat)
result = sdk_services.send_spontaneous_payment(req)
# ANCHOR: send-spontaneous-payment
# ANCHOR_END: send-spontaneous-payment
return result
except Exception as error:
print(error)