mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-18 14:24:19 +01:00
@@ -145,11 +145,11 @@ The first step is to register a new node
|
|||||||
```typescript
|
```typescript
|
||||||
try {
|
try {
|
||||||
const seed = await mnemonicToSeed("<mnemonics words>");
|
const seed = await mnemonicToSeed("<mnemonics words>");
|
||||||
const invite_code = "<your greenlight invite code>";
|
const inviteCode = "<your greenlight invite code>";
|
||||||
|
|
||||||
// register_node takes either greenlight credentials (certifate & key) or invite code.
|
// register_node takes either greenlight credentials (certifate & key) or invite code.
|
||||||
// At this example we are using the invite code option.
|
// At this example we are using the invite code option.
|
||||||
const credentials = await registerNode(Network.BITCOIN, seed, inviteCode);
|
const credentials = await registerNode(Network.BITCOIN, seed, null, inviteCode);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<custom-tabs category="lang">
|
<custom-tabs category="lang">
|
||||||
<div slot="title">Rust</div>
|
<div slot="title">Rust</div>
|
||||||
<section>
|
<section>
|
||||||
|
|
||||||
## Receiving Lightning Payments
|
## Receiving Lightning Payments
|
||||||
Breez SDK doesn't require you to open a channel and set up your inbound liquidity.
|
Breez SDK doesn't require you to open a channel and set up your inbound liquidity.
|
||||||
Breez SDK automatically connects your node to the LSP peer and you can now receive payments:
|
Breez SDK automatically connects your node to the LSP peer and you can now receive payments:
|
||||||
@@ -26,6 +27,7 @@ sdk.send_payment(node_id.into(), Some(3000)).await?;
|
|||||||
</section>
|
</section>
|
||||||
<div slot="title">Swift</div>
|
<div slot="title">Swift</div>
|
||||||
<section>
|
<section>
|
||||||
|
|
||||||
## Receiving Lightning Payments
|
## Receiving Lightning Payments
|
||||||
Breez SDK doesn't require you to open a channel and set up your inbound liquidity.
|
Breez SDK doesn't require you to open a channel and set up your inbound liquidity.
|
||||||
Breez SDK automatically connects your node to the LSP peer and you can now receive payments:
|
Breez SDK automatically connects your node to the LSP peer and you can now receive payments:
|
||||||
@@ -60,6 +62,7 @@ do {
|
|||||||
</section>
|
</section>
|
||||||
<div slot="title">React Native</div>
|
<div slot="title">React Native</div>
|
||||||
<section>
|
<section>
|
||||||
|
|
||||||
## Receiving Lightning Payments
|
## Receiving Lightning Payments
|
||||||
Breez SDK doesn't require you to open a channel and set up your inbound liquidity.
|
Breez SDK doesn't require you to open a channel and set up your inbound liquidity.
|
||||||
Breez SDK automatically connects your node to the LSP peer and you can now receive payments:
|
Breez SDK automatically connects your node to the LSP peer and you can now receive payments:
|
||||||
|
|||||||
Reference in New Issue
Block a user