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:
@@ -10,6 +10,12 @@ Future<void> getLspInfo() async {
|
||||
// ANCHOR_END: get-lsp-info
|
||||
}
|
||||
|
||||
Future<void> listLsps() async {
|
||||
// ANCHOR: list-lsps
|
||||
List<LspInformation> availableLsps = await BreezSDK().listLsps();
|
||||
// ANCHOR_END: list-lsps
|
||||
}
|
||||
|
||||
Future<void> connectLsp(String lspId) async {
|
||||
// ANCHOR: connect-lsp
|
||||
await BreezSDK().connectLSP(lspId);
|
||||
|
||||
Reference in New Issue
Block a user