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

Overview

ldk-node-sample

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

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>] [--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.

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

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.

You might also like...
Bootstrap your MEV bot strategies with a simple boilerplate to build on top of.

MEV Template Designed by DeGatchi. Bootstrap your MEV bot strategies with a simple boilerplate to build on top of. How To Use This Template I wrote an

Built for Perpetual Protocol v2 Curie on Optimism chain. This CLI tool was built with Rust.
Built for Perpetual Protocol v2 Curie on Optimism chain. This CLI tool was built with Rust.

Perpetual Protocol CLI for Perp v2 Curie This tool is to provide a simple, fast and efficient way to interact Perpetual Protocol contracts from your t

Basilisk node - cross-chain liquidity protocol built on Substrate

Basilisk node Local Development Follow these steps to prepare a local Substrate development environment šŸ› ļø Simple Setup Install all the required depe

Node implementation for aleph blockchain built with Substrate framework
Node implementation for aleph blockchain built with Substrate framework

This repository contains the Rust implementation of Aleph Zero blockchain node based on the Substrate framework. Aleph Zero is an open-source layer 1

A node and runtime configuration for polkadot node.
A node and runtime configuration for polkadot node.

MANTA NODE This repo is a fresh FRAME-based Substrate node, forked from substrate-developer-hub/substrate-node-templte šŸš€ It links to pallet-manta-dap

Simple node and rust script to achieve an easy to use bridge between rust and node.js

Node-Rust Bridge Simple rust and node.js script to achieve a bridge between them. Only 1 bridge can be initialized per rust program. But node.js can h

Making composability with the Zeta DEX a breeze, FuZe provides CPI interfaces and sample implementations for on-chain program integration.
Making composability with the Zeta DEX a breeze, FuZe provides CPI interfaces and sample implementations for on-chain program integration.

Zeta FuZe šŸ§¬ Zeta FuZe FuZe is Zeta's cross-program integration ecosystem. This repository contains the Zeta Cross Program Invocation (CPI) interface

Cardano Command Line Interface (CLI) (Deprecated)

Deprecated Note: This repository implements supports for Cardano Byron, and will not be updated to works on Cardano Shelley and further. cardano-cli T

Rust command line program for Bitcoin brainwallet

brainwallet Rust command line program for Bitcoin brainwallet as implemented at https://www.bitaddress.org. To run it, first install Rust, e.g. from h

Comments
  • Onchain balance is always 0, cannot open channel

    Onchain balance is always 0, cannot open channel

    Steps:

    • start ldk-node-sample
    • newonchainaddress command
    • send some testnet coins to it
    • verify in block explorer that the address has positive balance
    • wait for confirmations (I waited for >=6)
    • getbalance command
    • it shows all 0s, expectation is that onchain total balance is the balance of the address (at least)

    Consequence: Not possible to open a channel (as there is no onchain balance). Not possible to send LN (as there is no channel).

    Both node.spendable_onchain_balance_sats() and node.total_onchain_balance_sats() return 0.

    Versions: ldk-node 0.1.0, ldk-node-sample 0.1.0 . Source of onchain data: https://blockstream.info/testnet/api node.new_onchain_address() is used for address creation.

    opened by optout21 3
  • Enable windows build in CI

    Enable windows build in CI

    Was disabled due to CI build issue (winapi crate not found)

    It looks like ldk-node v0.1.0 does not support Win build. Was fixed later, in https://github.com/lightningdevkit/ldk-node/pull/160

    opened by optout21 0
Releases(v0.1.0)
Owner
optout
bitcoin, lightning, wallets Nostr: [email protected] npub1kxgpwh80gp79j0chc925srk6rghw0akggduwau8fwdflslh9jvqqd3lecx
optout
Metaplex is a protocol built on top of Solana that allows: Creating/Minting non-fungible tokens;

Metaplex is a protocol built on top of Solana that allows: Creating/Minting non-fungible tokens; Starting a variety of auctions for primary/secondary

Metaplex Foundation 3.2k Jan 4, 2023
Trustworthy encrypted command line authenticator app compatible with multiple backups.

cotp - command line totp authenticator I believe that security is of paramount importance, especially in this digital world. I created cotp because I

Reply 71 Dec 30, 2022
Minimal flashloan borrower contracts with an extensible rust sdk to abstract wrapping generic onchain calls (similar to multicall3) with flashloans.

flashloan-rs ā€¢ Minimal flashloan borrower contracts with an extensible rust sdk. Getting Started Flashloan-rs is published to crates.io as flashloan-r

White Noise 71 Apr 15, 2023
A lightning-fast password generator and manager written in Rust

Passlane A lightning-fast password manager for the command line Features Generate passwords Place the generated password into the clipboard Save previ

Anssi Piirainen 4 Dec 15, 2022
An API and test-app that exposes zcash functionality for app consumption

Zingolib This repo provides both a library for zingoproxyclient and zingo-mobile, as well as an included cli application to interact with zcashd via l

ZingoLabs 5 Dec 15, 2022
An example smart contract that builds on top of xyz

xyz Guestbook Tutorial Contract This repository contains an example smart contract that illustrates how to build on top of the xyz NFT contract. This

null 5 Apr 4, 2022
Dione is an anonymize and encrypted messaging system build on top on a peer to peer layer.

Secure and Anonymous Messaging WARNING: Currently Dione is not ready to be used nor does it fulfill its goal of being an anonymous messenger. In order

Dione 41 Jan 5, 2023
As part of the IOP Stackā„¢ Morpheus is a toolset to have gatekeeper-free identity management and verifiable claims as a 2nd layer on top of a blockchain

Internet of People Internet of People (IoP) is a software project creating a decentralized software stack that provides the building blocks and tools

We are building a complete decentralized ecosystem with the IOP Stackā„¢ 9 Nov 4, 2022
A top-up of fatality based errors, originally developed for polkadot

fatality A generative approach to creating fatal and non-fatal errors. The generated source utilizes thiserror::Error derived attributes heavily, and

Bernhard Schuster 9 Sep 1, 2022
Baek-Zheng threshold cryptosystem on top of BLS12-381

bzte A rust implementation of the Baek-Zhang threshold cryptosystem on top of BLS12-381 using arkworks Why threshold encrypt? The advantage of thresho

null 4 Jun 28, 2022