mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-18 14:24:19 +01:00
add golang and rn examples
This commit is contained in:
@@ -480,7 +480,12 @@ do {
|
|||||||
<section>
|
<section>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
// TODO add example for openChannelFee
|
const amountMsat = <amount msat>
|
||||||
|
try {
|
||||||
|
const channelFees = await openChannelFee({amountMsat: amountMsat})
|
||||||
|
} catch (error) {
|
||||||
|
// handle error
|
||||||
|
}
|
||||||
```
|
```
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -519,7 +524,7 @@ except Exception as error:
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
amountMsat := <amount msat>
|
amountMsat := <amount msat>
|
||||||
channelFees, err := sdkServices.OpenChannelFee(breez_sdk.OpenChannelFeeRequest(amountMsat))
|
channelFees, err := sdkServices.OpenChannelFee(breez_sdk.OpenChannelFeeRequest{AmountMsat: amountMsat})
|
||||||
```
|
```
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user