example_client cleanup

This commit is contained in:
2025-06-10 16:08:04 +02:00
parent e92762c2ee
commit b521c32bec

View File

@@ -187,8 +187,8 @@ class BreezClient:
# Example usage # Example usage
if __name__ == "__main__": if __name__ == "__main__":
# Configuration # Configuration
API_URL = "http://localhost:8000" # Change to your deployed API URL API_URL = "<url-to-your-api>" # Change to your deployed API URL
API_KEY = "kurac" # Set your API key here API_KEY = "<api-key-you-set>" # Set your API key here
# Initialize client # Initialize client
breez = BreezClient(api_url=API_URL, api_key=API_KEY) breez = BreezClient(api_url=API_URL, api_key=API_KEY)
@@ -225,4 +225,4 @@ if __name__ == "__main__":
# Onchain payment example (commented out for safety) # Onchain payment example (commented out for safety)
# print("\n⛓ Sending Onchain Payment...") # print("\n⛓ Sending Onchain Payment...")
# result = breez.send_onchain(address="bitcoin_address_here", amount_sat=10000) # result = breez.send_onchain(address="bitcoin_address_here", amount_sat=10000)
# print(json.dumps(result, indent=2)) # print(json.dumps(result, indent=2))