mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-18 06:14:21 +01:00
Merge pull request #50 from breez/savage-rn-install
Update RN install commands
This commit is contained in:
@@ -95,7 +95,7 @@ try {
|
||||
|
||||
```typescript
|
||||
try {
|
||||
const fiatRatesMap = fetchFiatRates()
|
||||
const fiatRatesMap = await fetchFiatRates()
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ const nodeConfig : NodeConfig = {
|
||||
inviteCode: "your invite code"
|
||||
}
|
||||
}
|
||||
let config = defaultConfig(EnvironmentType.PRODUCTION, "api key", nodeConfig);
|
||||
let config = await defaultConfig(EnvironmentType.PRODUCTION, "api key", nodeConfig);
|
||||
|
||||
// Customize the config object according to your needs
|
||||
config.workingDir = "path to an existing directory";
|
||||
|
||||
@@ -63,11 +63,11 @@ See [the example](https://github.com/breez/breez-sdk/tree/main/libs/sdk-bindings
|
||||
We recommmend using the official npm package:
|
||||
|
||||
```console
|
||||
npm install https://github.com/breez/breez-sdk-react-native/releases/download/0.1.4/breeztech-react-native-breez-sdk-0.1.4.tgz
|
||||
npm install @breeztech/react-native-breez-sdk
|
||||
```
|
||||
or
|
||||
```console
|
||||
yarn add https://github.com/breez/breez-sdk-react-native/releases/download/0.1.4/breeztech-react-native-breez-sdk-0.1.4.tgz
|
||||
yarn add @breeztech/react-native-breez-sdk
|
||||
```
|
||||
|
||||
## Go
|
||||
|
||||
@@ -261,7 +261,7 @@ const destinationAddress = "bc1..";
|
||||
const amountSat = currentFees.min;
|
||||
const satPerVbyte = <fee rate>
|
||||
try {
|
||||
const reverseSwapInfo = sendOnchain(amountSat, destinationAddress, currentFees.feesHash, satPerVbyte)
|
||||
const reverseSwapInfo = await sendOnchain(amountSat, destinationAddress, currentFees.feesHash, satPerVbyte)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user