Merge pull request #104 from breez/savage-service-status

Update 0.2.10 & add service status page
This commit is contained in:
Roei Erez
2023-11-27 17:27:25 +02:00
committed by GitHub
20 changed files with 379 additions and 42 deletions

View File

@@ -0,0 +1,18 @@
import 'package:breez_sdk/breez_sdk.dart';
import 'package:breez_sdk/bridge_generated.dart';
Future<void> healthCheckStatus() async {
// ANCHOR: health-check-status
ServiceHealthCheckResponse healthCheck = await BreezSDK().serviceHealthCheck();
print("Current service status is: ${healthCheck.status}");
// ANCHOR_END: health-check-status
}
Future<void> reportPaymentFailure() async {
// ANCHOR: report-payment-failure
String paymentHash = "...";
await BreezSDK().reportIssue(
req: ReportIssueRequest.paymentFailure(
data: ReportPaymentFailureDetails(paymentHash: paymentHash)));
// ANCHOR_END: report-payment-failure
}