Skip to content

Sample node implementation using LDK

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

lightningdevkit/ldk-sample

Folders and files

NameName
Last commit message
Last commit date
Feb 1, 2024
Feb 26, 2025
Jan 4, 2023
Jan 4, 2023
May 28, 2024
Jan 16, 2025
Mar 3, 2021
Mar 3, 2021
Jul 31, 2022
Feb 23, 2024

Repository files navigation

ldk-sample

Sample node implementation using LDK.

Installation

git clone https://github.com/lightningdevkit/ldk-sample

Usage

cd ldk-sample
cargo run <bitcoind-rpc-username>:<bitcoind-rpc-password>@<bitcoind-rpc-host>:<bitcoind-rpc-port> <ldk_storage_directory_path> [<ldk-peer-listening-port>] [<bitcoin-network>] [<announced-node-name>] [<announced-listen-addr>]

bitcoind's RPC username and password likely can be found through cat ~/.bitcoin/.cookie.

bitcoin-network: defaults to testnet. Options: testnet, regtest, and signet.

ldk-peer-listening-port: defaults to 9735.

announced-listen-addr and announced-node-name: default to nothing, disabling any public announcements of this node. announced-listen-addr can be set to an IPv4 or IPv6 address to announce that as a publicly-connectable address for this node. announced-node-name can be any string up to 32 bytes in length, representing this node's alias.

License

Licensed under either:

at your option.

About

Sample node implementation using LDK

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages