Skip to content

BlueWallet/rn-lnd

Repository files navigation

rn-lnd

LND for React Native

Installation

npm install rn-lnd

Usage

import RnLnd from "rn-lnd";

// ...

await RnLnd.start();
await RnLnd.initWallet('gsomgsomgsom', 'abstract rhythm weird food attract treat mosquito sight royal actor surround ride strike remove guilt catch filter summer mushroom protect poverty cruel chaos pattern');
// or await RnLnd.unlockWallet('gsomgsomgsom');  if its not the first run
console.warn(await RnLnd.getInfo());

Installation

  • Android: open android/app/build.gradle and add
    implementation files("../../node_modules/rn-lnd/android/libs/Lndmobile.aar")
    

Example app

image

License

MIT