Open channel fees: add Rust example

This commit is contained in:
ok300
2023-09-04 17:44:47 +02:00
parent 22fb1c55b2
commit 063a883079

View File

@@ -450,7 +450,10 @@ To calculate the fees for a channel being opened by the LSP:
<section> <section>
```rust,ignore ```rust,ignore
// TODO add example for open_channel_fee let amount_msat = <amount msat>;
let channel_fees = sdk.open_channel_fee(
OpenChannelFeeRequest { amount_msat, expiry: None })
.await?;
``` ```
</section> </section>