mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Resolve conflicts
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import 'package:breez_sdk/breez_sdk.dart';
|
||||
import 'package:breez_sdk/bridge_generated.dart';
|
||||
|
||||
Future<SendPaymentResponse> buyBitcoin({required String bolt11}) async {
|
||||
Future<SendPaymentResponse> sendPayment({required String bolt11}) async {
|
||||
// ANCHOR: send-payment
|
||||
SendPaymentRequest req = SendPaymentRequest(bolt11: bolt11);
|
||||
// The `amountMsat` param is optional and should only passed if the bolt11 doesn't specify an amount.
|
||||
// The amountMsat is required in case an amount is not specified in the bolt11 invoice'.
|
||||
SendPaymentRequest req = SendPaymentRequest(bolt11: bolt11, amountMsat: 3000000);
|
||||
SendPaymentResponse resp = await BreezSDK().sendPayment(req: req);
|
||||
// ANCHOR_END: send-payment
|
||||
return resp;
|
||||
|
||||
Reference in New Issue
Block a user