mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-18 06:14:21 +01:00
Open channel fees: add Rust example
This commit is contained in:
@@ -450,7 +450,10 @@ To calculate the fees for a channel being opened by the LSP:
|
||||
<section>
|
||||
|
||||
```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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user