mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Correct indentation issues
This commit is contained in:
committed by
Erdem Yerebasmaz
parent
1aa91aab17
commit
baa365e926
@@ -12,6 +12,6 @@ Future<void> getLspInfo() async {
|
||||
|
||||
Future<void> connectLsp(String lspId) async {
|
||||
// ANCHOR: connect-lsp
|
||||
return await BreezSDK().connectLSP(lspId);
|
||||
await BreezSDK().connectLSP(lspId);
|
||||
// ANCHOR_END: connect-lsp
|
||||
}
|
||||
@@ -9,7 +9,7 @@ Future<void> initializeSDK() async {
|
||||
// Initialize SDK logs listener
|
||||
BreezSDK().initialize();
|
||||
|
||||
// Create the default config
|
||||
// Create the default config
|
||||
Uint8List seed = await BreezSDK().mnemonicToSeed("<mnemonic words>");
|
||||
String inviteCode = "<invite code>";
|
||||
String apiKey = "<api key>";
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/breez/breez-sdk-go/breez_sdk"
|
||||
)
|
||||
|
||||
// ANCHOR: init-sdk-requirements
|
||||
// ANCHOR: init-sdk
|
||||
// SDK events listener
|
||||
type BreezListener struct{}
|
||||
|
||||
@@ -14,10 +14,7 @@ func (BreezListener) OnEvent(e breez_sdk.BreezEvent) {
|
||||
log.Printf("received event %#v", e)
|
||||
}
|
||||
|
||||
// ANCHOR_END: init-sdk-requirements
|
||||
|
||||
func GettingStarted() {
|
||||
// ANCHOR: init-sdk
|
||||
// Create the default config
|
||||
seed, err := breez_sdk.MnemonicToSeed("<mnemonic words>")
|
||||
if err != nil {
|
||||
@@ -41,7 +38,10 @@ func GettingStarted() {
|
||||
if err != nil {
|
||||
log.Fatalf("Connect failed: %#v", err)
|
||||
}
|
||||
// ANCHOR_END: init-sdk
|
||||
}
|
||||
|
||||
// ANCHOR_END: init-sdk
|
||||
func FetchBalance() {
|
||||
// ANCHOR: fetch-balance
|
||||
if nodeInfo, err := sdk.NodeInfo(); err != nil {
|
||||
lnBalance := nodeInfo.ChannelsBalanceMsat
|
||||
|
||||
@@ -6,5 +6,5 @@ const exampleReceiveLightningPayment = async () => {
|
||||
amountMsat: 3000000,
|
||||
description: "Invoice for 3000 sats"
|
||||
})
|
||||
// ANCHOR: receive-payment
|
||||
// ANCHOR_END: receive-payment
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user