mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
Add list-lsps snippets
This commit is contained in:
@@ -16,10 +16,14 @@ func getLspInfo(sdk: BlockingBreezServices) -> LspInformation?{
|
||||
return lspInfo
|
||||
}
|
||||
|
||||
func listLsps(sdk: BlockingBreezServices) {
|
||||
// ANCHOR: list-lsps
|
||||
let availableLsps = try? sdk.listLsps()
|
||||
// ANCHOR_END: list-lsps
|
||||
}
|
||||
|
||||
func connectLsp(sdk: BlockingBreezServices, lspId: String) {
|
||||
// ANCHOR: connect-lsp
|
||||
try? sdk.connectLsp(lspId: lspId)
|
||||
// ANCHOR_END: connect-lsp
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user