From 8fe4ad0288eca55e308911915f96e4ea38a19c32 Mon Sep 17 00:00:00 2001 From: Yaacov Akiba Slama Date: Wed, 28 Jun 2023 16:58:59 +0300 Subject: [PATCH] Use multi language tabs in getting_started --- src/guide/getting_started.md | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/src/guide/getting_started.md b/src/guide/getting_started.md index 9e0b572..4c6bcb8 100644 --- a/src/guide/getting_started.md +++ b/src/guide/getting_started.md @@ -15,6 +15,11 @@ Connecting to a node requires a seed (your master key) and credentials. The seed Breez SDK is available in several platforms. Follow the [Installing](install.md) page for instructions on how to install on your platform. + +
Rust
+
+ +The first step is to register a new node. In order to do that a seed is needed. ## Registering a new node ```rust,no_run let seed = ; @@ -62,4 +67,36 @@ if let Some(node_state) = sdk.node_info()? { let balance_onchain = node_state.onchain_balance_msat; } ``` +
+
Swift
+
+ +The first step is to register a new node +## Registering a new node +```swift +// TODO +``` + +## Recovering an existing node +```swift +// TODO +``` + +Once the credentials are retrieved they should be saved in a secured storage. +The next step is to initialize the SDK and start the node: + +## Initializing the SDK +```swift +/* TODO +*/ +``` + +At any point we can fetch our balance from the Greenlight node: + +```swift +// TODO +``` +
+
+ You are now ready to receive a Lightning [payment](payments.md).