Add list-lsps snippets

This commit is contained in:
ok300
2023-11-17 14:32:47 +01:00
parent 03323f0a16
commit 5de95fe283
9 changed files with 135 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { connectLsp, lspId, lspInfo } from '@breeztech/react-native-breez-sdk'
import { connectLsp, listLsps, lspId, lspInfo } from '@breeztech/react-native-breez-sdk'
const exampleAutoConnect = async () => {
// ANCHOR: get-lsp-info
@@ -7,6 +7,12 @@ const exampleAutoConnect = async () => {
// ANCHOR_END: get-lsp-info
}
const exampleListLsps = async () => {
// ANCHOR: list-lsps
const availableLsps = await listLsps()
// ANCHOR_END: list-lsps
}
const exampleManualConnect = async () => {
// ANCHOR: connect-lsp
const id = 'your selected lsp id'