@breeztech/breez-sdk-spark-react-native
v0.5.2
Published
React Native bindings for the Breez SDK - Nodeless (Spark Implementation)
Readme
Breez SDK - Nodeless (Spark Implementation)
What Is the Breez SDK?
The Breez SDK provides developers with an end-to-end solution for integrating self-custodial Lightning into their apps and services. It eliminates the need for third parties, simplifies the complexities of Bitcoin and Lightning, and enables seamless onboarding for billions of users to the future of value transfer.
What Is the Breez SDK - Nodeless (Spark Implementation)?
It’s a nodeless integration that offers a self-custodial, end-to-end solution for integrating Lightning payments, utilizing Spark with on-chain interoperability and third-party fiat on-ramps.
Installation
To install the package:
npm install @breeztech/breez-sdk-spark-react-nativeUsage
Head over to the Breez SDK - Nodeless (Spark Implementation) documentation to start implementing Lightning in your app.
import { connect, defaultConfig } from '@breeztech/breez-sdk-spark-react-native';
import RNFS from 'react-native-fs';
// ...
const mnemonic =
'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about';
let config = defaultConfig(Network.Mainnet);
config.apiKey = apiKey;
const sdk = await connect({
config,
mnemonic,
storageDir: `${RNFS.DocumentDirectoryPath}/breezSdkSpark`,
});Pricing
The Breez SDK is free for developers.
Support
Have a question for the team? Join us on Telegram or email us at [email protected].
Information for Maintainers and Contributors
This repository is used to publish a NPM package providing React Native bindings to the Breez SDK - Nodeless (Spark Implementation)'s underlying Rust implementation. The React Native bindings are generated using UniFFi Bindgen React Native.
Any changes to Breez SDK - Nodeless (Spark Implementation), the React Native bindings, and the configuration of this React Native package must be made via the spark-sdk repository.
