Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.38 KB

File metadata and controls

45 lines (29 loc) · 1.38 KB

ldk-node-sample

Sample lightning node command-line app built on top of LDK Node (similar to how ldk-sample is built on top of LDK).

Installation

git clone https://github.com/optout21/ldk-node-sample

Usage

cd ldk-node-sample
cargo run [<datadir>] [--port <listening_port>] [--network <network>|--testnet|--mainnet] [--esplora <esplora_url>] [--rgs <rgs_url>] [--log <log_level>]

datadir is a subfolder for keeping state, defaults to datadir

listening_port: defaults to 9735.

network: default is testnet, one of: testnet, mainnet, signet.

esplora_url: The URL of the Esplora server to use as chain info. Sample values: 'https://blockstream.info/testnet/api', 'https://mempool.space/api', 'https://mutinynet.com/api/'.

rgs_url: The URL of the RGS (Rapid Gossip Server), optional. Default: 'https://rapidsync.lightningdevkit.org/{network}/snapshot'.

log_level: Logging level, one of: none, error, warn, info, debug, trace.

``

For the interactive commands, type help.

License

Licensed under either:

at your option.