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:
@@ -17,6 +17,15 @@ class ConnectingLsp {
|
||||
// ANCHOR_END: get-lsp-info
|
||||
}
|
||||
|
||||
fun list_lsps(sdk: BlockingBreezServices) {
|
||||
// ANCHOR: list-lsps
|
||||
try {
|
||||
let availableLsps = sdk.listLsps()
|
||||
} catch (e: Exception) {
|
||||
// Handle error
|
||||
}
|
||||
// ANCHOR_END: list-lsps
|
||||
}
|
||||
fun connect_lsp(sdk: BlockingBreezServices, lspId: String) {
|
||||
// ANCHOR: connect-lsp
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user