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.
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.
To install the package:
npm install @breeztech/breez-sdk-spark-react-native
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`,
});
The Breez SDK is free for developers.
Have a question for the team? Join us on Telegram or email us at contact@breez.technology.
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.