selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitHub
LND logo

Self-host LND

v0.21.8-beta

Lightning Network node daemon for Bitcoin payments

BetaOpen SourceMIT
docker run lightninglabs/lnd [command-line options]
Updated2 days ago
LanguageGo
Setup difficultyAdvanced
Stars
8 217
Ports
9735 (p2p connections with other Lightning nodes), 10009 (gRPC API), 8080 (REST API (gRPC proxy)), 9911 (integrated watchtower (when enabled))
Docker
lightninglabs/lnd

What is LND?

lnd (Lightning Network Daemon) is a Bitcoin Lightning node implementation that runs entirely on your own hardware, serving node operators and developers who build payment applications on top of it. It opens and closes channels, handles every channel state, keeps a fully validated channel graph, finds payment paths and forwards traffic for others, sends onion-encrypted payments and manages its advertised fee schedules, with full compliance against the Lightning BOLT specifications. Chain data can come from a pluggable backend: btcd, bitcoind or the neutrino light client. Optional subsystems include an autopilot agent that opens channels for you and an integrated watchtower. Applications reach the daemon through an HTTP REST API or a gRPC service, both protected by TLS and macaroon bearer credentials, and Prometheus monitoring is available. You can install it by downloading the official lnd and lncli release binaries, pulling the lightninglabs/lnd Docker image (or the included docker-compose setup with btcd), or building tagged releases with the Docker release helper. The project still labels lnd as beta software and publishes operational safety guidelines, treating large mainnet commitments as risky.

LND alternatives

Should you self-host LND?

LND scores 70/100 on selfhost.directory (how scoring works) and ranks #5 of 44 in Cryptocurrency. It has 8 217 GitHub stars, +22 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is MIT-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is Freqtrade (87/100, 56 854 stars). It scores higher overall, so compare the two before you pick. See LND vs Freqtrade side by side.

Features

  • Automatic channel management (autopilot)
  • BOLT specification compliance
  • Channel graph maintenance
  • Fee policy updates
  • gRPC API
  • Integrated watchtowerdisabled by default (watchtower.active=false)
  • Lightning channel creation and closing
  • Multiple Bitcoin networks
  • Onion-encrypted payments
  • Payment routing and forwarding
  • Pluggable Bitcoin chain backends
  • REST API
  • TLS and macaroon authentication for RPC
  • Wumbo (oversized) channelsdisabled by default

LND README

Lightning Network Daemon

Release build MIT licensed Irc Godoc Go Report Card

The Lightning Network Daemon (lnd) - is a complete implementation of a Lightning Network node. lnd has several pluggable back-end chain services including btcd (a full-node), bitcoind, and neutrino (a new experimental light client). The project's codebase uses the btcsuite set of Bitcoin libraries, and also exports a large set of isolated re-usable Lightning Network related libraries within it. In the current state lnd is capable of:

How to install LND

Install LND with Docker

$  docker pull lightninglabs/lnd:v0.14.1-beta
$  docker run lightninglabs/lnd [command-line options]

Official, automatically built images on Docker Hub; `daily-*` tags are unstable and not for production use.

How to configure LND

  • datadir~/.lnd/dataDirectory where lnd stores all wallet, chain and channel related data.

    values: path

  • logdir~/.lnd/logsDirectory that logs are stored in; logs are auto-rotated by default.

    values: path

  • tlscertpath~/.lnd/tls.certPath to the TLS certificate for lnd's RPC and REST services.

    values: path

  • tlskeypath~/.lnd/tls.keyPath to the TLS private key for lnd's RPC and REST services.

    values: path

  • listen:9735Interfaces to listen on for p2p connections; can be set multiple times.

    values: host:port

More in Cryptocurrency

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…