Merge branch 'main' into go-examples

This commit is contained in:
Ross Savage
2023-07-05 08:49:45 +02:00
7 changed files with 1458 additions and 8 deletions

View File

@@ -1,8 +1,8 @@
# Introduction
The SDK docs are live at [https://sdk-doc.breez.technology]().
The SDK docs are live at [https://sdk-doc.breez.technology](https://sdk-doc.breez.technology).
## Contributions
For syntax and supported features, see [https://rust-lang.github.io/mdBook]().
For syntax and supported features, see [https://rust-lang.github.io/mdBook](https://rust-lang.github.io/mdBook).

View File

@@ -6,9 +6,10 @@ src = "src"
title = "Breez SDK"
[output.html]
theme="theme"
additional-js = ["tabs.js"]
git-repository-url = "https://github.com/breez/breez-sdk-docs"
edit-url-template = "https://github.com/breez/breez-sdk-docs/edit/main/{path}"
[output.html.print]
enable = false
enable = false

View File

@@ -5,7 +5,7 @@
- [Installing](guide/install.md)
- [Getting Started](guide/getting_started.md)
- [Lightning payments](guide/payments.md)
- [Receiving an on-chain transaction](guide/recieve_onchain.md)
- [Receiving an on-chain transaction](guide/receive_onchain.md)
- [Sending an on-chain transaction](guide/send_onchain.md)
- [Connecting to an LSP](guide/connecting_lsp.md)
- [Using LNURL](guide/lnurl.md)

View File

@@ -51,9 +51,9 @@ do {
let lnurlPayUrl = "lightning@address.com";
try {
const input = await parseInput(lnurlAuthUrl)
const input = await parseInput(lnurlPayUrl)
if (input.type === InputType.LNURL_PAY) {
const amountSats = input.minSendable;
const amountSats = input.data.minSendable;
const result = await payLnurl(input.data, amountSats, "comment")
}
} catch (error) {

View File

@@ -51,9 +51,9 @@ do {
let lnurlWithdrawUrl = "lnurl1dp68gurn8ghj7mr0vdskc6r0wd6z7mrww4exctthd96xserjv9mn7um9wdekjmmw843xxwpexdnxzen9vgunsvfexq6rvdecx93rgdmyxcuxverrvcursenpxvukzv3c8qunsdecx33nzwpnvg6ryc3hv93nzvecxgcxgwp3h33lxk";
try {
const input = await parseInput(lnurlAuthUrl)
const input = await parseInput(lnurlWithdrawUrl)
if (input.type === InputType.LNURL_WITHDRAW) {
const amountSats = input.minWithdrawable;
const amountSats = input.data.minWithdrawable;
const result = await withdrawLnurl(input.data, amountSats, "comment")
}
} catch (error) {

1449
theme/highlight.js Normal file

File diff suppressed because one or more lines are too long