ldk_node 0.1.0 copy "ldk_node: ^0.1.0" to clipboard
ldk_node: ^0.1.0 copied to clipboard

A ready-to-go Lightning node library built using LDK and BDK.

LDK_Node #

A Flutter library for LDK Node, a ready-to-go Lightning node library built using LDK and BDK.

How to use ldk_node #

From Github (copy and paste the following code to pubsepc.yaml):

ldk_node:
    git:
      url: https://github.com/LtbLightning/ldk-node-flutter.git
      ref: main

Examples #

Build, Start & Sync the local node #

import 'package:ldk_node/ldk_node.dart';

// ....

// Path to a directory where the application may place data that is user-generated
final path = "${directory.path}alice's_node";

// Your preferred `Esplora` url
final esploraUrl = https://blockstream.info/testnet/api;

// configuration options for the node
final config = Config( storageDirPath: path,
                       esploraServerUrl: esploraUrl,
                       network: Network.Testnet,
                       listeningAddress: SocketAddr(io:"0.0.0.0", port:80) );
Builder builder = Builder.fromConfig(config);
final node = await builder.build();

// Starting the node
await node.start();

// Syncing the node
await node.syncWallets();

14
likes
0
points
82
downloads

Publisher

verified publisherltbl.io

Weekly Downloads

A ready-to-go Lightning node library built using LDK and BDK.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, ffi, flutter, flutter_rust_bridge, freezed, freezed_annotation, meta, uuid

More

Packages that depend on ldk_node