랭킹으로 돌아가기

BlueWallet/LndHub

JavaScriptlndhub.io

Wrapper for Lightning Network Daemon. It provides separate accounts for end-users

lightning-networkbitcoinlightningapimicroservice
스타 성장
스타
1k
포크
374
주간 성장
이슈
0
5001k
2023년 1월2024년 3월2025년 5월2026년 7월
아티팩트npmnpm install lndhub
README

LndHub

Wrapper for Lightning Network Daemon (lnd). It provides separate accounts with minimum trust for end users.

INSTALLATION

You can use those guides or follow instructions below:

git clone git@github.com:BlueWallet/LndHub.git
cd LndHub
npm i

Install bitcoind, lnd, and redis. Edit LndHub's config.js to set it up correctly. Copy the files admin.macaroon (for Bitcoin mainnet, usually stored in ~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon) and tls.cert (usually stored in ~/.lnd/tls.cert) into the root folder of LndHub.

LndHub expects LND's wallet to be unlocked, if not — it will attempt to unlock it with the password stored in config.lnd.password. Don't forget to configure disk-persistence for redis (e.g., you may want to set appendonly to yes in redis.conf (see http://redis.io/topics/persistence for more information).

If you have no bitcoind instance, for example if you use neutrino, or you have no bitcoind wallet, for example if you use LND for wallet managment, you can remove the bitcoind settings from config.js. Please note that this feature is limited to Bitcoin, so you can't use it if you use any other cryptocurrency with LND (e.g., Litecoin).

Deploy to Heroku

Add config vars :

  • CONFIG : json serialized config object
  • MACAROON: hex-encoded admin.macaroon
  • TLSCERT: hex-encoded tls.cert

Run in docker

LndHub is available on Docker Hub as bluewalletorganization/lndhub. Please note that this requires a separate instance of redis and LND and optionally, bitcoind. You can also view Umbrel's implementation using docker-compose here.

Reference client implementation

Can be used in ReactNative or Nodejs environment

Tests

Acceptance tests are in https://github.com/BlueWallet/BlueWallet/blob/master/tests/integration/lightning-custodian-wallet.test.js

image

Responsible disclosure

Found critical bugs/vulnerabilities? Please email them to bluewallet@bluewallet.io Thanks!

관련 저장소
spesmilo/electrum

Electrum Bitcoin Wallet

PythonPyPIMIT Licensebitcoinbitcoin-wallet
electrum.org
8.5k3.5k
lightningnetwork/lnd

Lightning Network Daemon ⚡️

GoGo ModulesMIT Licensebitcoinlightning-network
8.2k2.3k
btcpayserver/btcpayserver

Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin payment processor.

C#MIT Licensebitcoinbitcoin-payment-gateway
btcpayserver.org
7.7k2k
ElementsProject/lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance

COtherbitcoinlightning
3.1k1k
lnbook/lnbook

Mastering the Lightning Network (LN)

AsciiDocCreative Commons Attribution Share Alike 4.0 Internationallightning-networkln
3k659
lightning/bolts

BOLT: Basis of Lightning Technology (Lightning Network Specifications)

Markdowncryptographycryptocurrency
2.2k527
damus-io/damus

iOS nostr client

SwiftGNU General Public License v3.0nostrbitcoin
2.1k300
ZeusLN/zeus

A mobile Bitcoin wallet fit for the gods. ⚡️ Est. 563345

TypeScriptnpmOtherbitcoinlightning-network
zeusln.com
1.4k242
lightningdevkit/rust-lightning

This repo is a mirror of https://git.rust-bitcoin.org/lightningdevkit/rust-lightning

Rustcrates.ioOtherbitcoinlightning-network
git.rust-bitcoin.org/lightningdevkit/rust-lightning
1.4k474
ACINQ/eclair

A scala implementation of the Lightning Network.

ScalaApache License 2.0eclairlightning-network
1.3k284
LN-Zap/zap-desktop

Zap Wallet - Cross platform Lightning Network wallet focused on user experience and ease of use ⚡️

JavaScriptnpmMIT Licensezapwalletlightning-network
1.3k205
lnbits/lnbits

LNbits, free and open-source Lightning wallet and accounts system.

PythonPyPIMIT Licenselightning-networklightning-network-wallet
lnbits.com
1.2k413