add golang and rn examples

This commit is contained in:
ruben beck
2023-09-04 17:10:58 +02:00
parent 06046dbecd
commit 22fb1c55b2

View File

@@ -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>