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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user