Files
breez-sdk-docs/snippets/react-native/static_channel_backup.ts
2024-02-06 20:25:50 +01:00

12 lines
318 B
TypeScript

import { staticBackup } from '@breeztech/react-native-breez-sdk'
const exampleStaticBackup = async () => {
// ANCHOR: static-channel-backup
try {
const backupData = await staticBackup({ workingDir: '<working directory>' })
} catch (err) {
console.error(err)
}
// ANCHOR_END: static-channel-backup
}