Files
breez-sdk-docs/snippets/react-native/connecting_lsp.ts
2023-10-24 22:38:52 +02:00

16 lines
412 B
TypeScript

import { connectLsp, lspId, lspInfo } from "@breeztech/react-native-breez-sdk"
const exampleAutoConnect = async () => {
// ANCHOR: get-lsp-info
const id = await lspId()
const info = await lspInfo()
// ANCHOR_END: get-lsp-info
}
const exampleManualConnect = async () => {
// ANCHOR: connect-lsp
const id = "your selected lsp id"
await connectLsp(id)
// ANCHOR_END: connect-lsp
}