mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Merge branch 'main' into ok300-bump-sdk-dependency-version
# Conflicts: # .github/workflows/main.yml # snippets/go/go.mod # snippets/kotlin_mpp_lib/shared/build.gradle.kts # snippets/python/src/send_spontaneous_payment.py # snippets/react-native/yarn.lock # snippets/rust/Cargo.lock # snippets/rust/Cargo.toml # snippets/swift/BreezSDKExamples/Package.resolved # snippets/swift/BreezSDKExamples/Package.swift # src/guide/install.md
This commit is contained in:
@@ -16,6 +16,17 @@ func sendSpontaneousPayment(sdk: BlockingBreezServices) -> SendPaymentResponse?
|
||||
nodeId: "...",
|
||||
amountMsat: 3_000_000))
|
||||
// ANCHOR_END: send-spontaneous-payment
|
||||
return response
|
||||
|
||||
return response
|
||||
}
|
||||
|
||||
func sendSpontaneousPaymentWithTlvs(sdk: BlockingBreezServices) -> SendPaymentResponse? {
|
||||
// ANCHOR: send-spontaneous-payment-with-tlvs
|
||||
let extraTlvs = [TlvEntry(fieldNumber: 34_349_334, value: Array("Hello world!".utf8))]
|
||||
let response = try? sdk.sendSpontaneousPayment(
|
||||
req: SendSpontaneousPaymentRequest(
|
||||
nodeId: "...",
|
||||
amountMsat: 3_000_000,
|
||||
extraTlvs: extraTlvs))
|
||||
// ANCHOR_END: send-spontaneous-payment-with-tlvs
|
||||
return response
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user