LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lnd

Lightning Network Daemon for Bitcoin

TLDR

Start the daemon
$ lnd
copy
Start with a specific Bitcoin backend
$ lnd --bitcoin.active --bitcoin.mainnet --bitcoind.rpcuser=[user] --bitcoind.rpcpass=[pass]
copy
Start on testnet
$ lnd --bitcoin.active --bitcoin.testnet
copy
Specify a custom data directory
$ lnd --lnddir=[~/.lnd]
copy

SYNOPSIS

lnd [options]

DESCRIPTION

lnd (Lightning Network Daemon) is a complete implementation of the Lightning Network protocol. It enables fast, low-cost Bitcoin transactions through payment channels, allowing near-instant payments without waiting for blockchain confirmations.The daemon manages payment channels, routes payments across the network, and maintains a local channel graph. It exposes gRPC and REST APIs for interaction, typically used via the companion lncli command-line client.

PARAMETERS

--bitcoin.active

Enable Bitcoin as the active chain.
--bitcoin.mainnet
Use the Bitcoin main network.
--bitcoin.testnet
Use the Bitcoin test network.
--bitcoind.rpcuser USER
Username for bitcoind RPC authentication.
--bitcoind.rpcpass PASS
Password for bitcoind RPC authentication.
--lnddir DIR
Custom path to lnd's data directory.
--listen ADDR
Add an interface/port to listen for peer connections.
--rpclisten ADDR
Add an interface/port for the RPC server to listen on.
--restlisten ADDR
Add an interface/port for the REST server to listen on.
--debuglevel LEVEL
Logging level (trace, debug, info, warn, error, critical).
--help, -h
Show help.
--version, -v
Display version information.

CAVEATS

Requires a Bitcoin full node backend (bitcoind, btcd, or neutrino). Channel management involves real funds on mainnet. Written in Go.

SEE ALSO

electrum(1), geth(1)

Copied to clipboard
Kai