mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Update Dart docs
This commit is contained in:
committed by
Erdem Yerebasmaz
parent
41213db8de
commit
197b8d965c
@@ -7,7 +7,7 @@ Future<SwapInfo> generateReceiveOnchainAddress() async {
|
||||
SwapInfo swapInfo = await BreezSDK().receiveOnchain(req: req);
|
||||
|
||||
// Send your funds to the below bitcoin address
|
||||
final address = swapInfo.bitcoinAddress;
|
||||
String address = swapInfo.bitcoinAddress;
|
||||
print(address);
|
||||
return swapInfo;
|
||||
// ANCHOR_END: generate-receive-onchain-address
|
||||
|
||||
@@ -8,11 +8,13 @@ Future<void> healthCheckStatus() async {
|
||||
// ANCHOR_END: health-check-status
|
||||
}
|
||||
|
||||
Future<void> reportPaymentFailure() async {
|
||||
Future<void> reportPaymentFailure({required String paymentHash}) async {
|
||||
// ANCHOR: report-payment-failure
|
||||
String paymentHash = "...";
|
||||
await BreezSDK().reportIssue(
|
||||
req: ReportIssueRequest.paymentFailure(
|
||||
data: ReportPaymentFailureDetails(paymentHash: paymentHash)));
|
||||
ReportIssueRequest req = ReportIssueRequest.paymentFailure(
|
||||
data: ReportPaymentFailureDetails(
|
||||
paymentHash: paymentHash,
|
||||
),
|
||||
);
|
||||
await BreezSDK().reportIssue(req: req);
|
||||
// ANCHOR_END: report-payment-failure
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user