Skip to main content
@utexo/wdk-rgb-lightning is a WDK module for the RGB Lightning Node, enabling channels, invoices, payments, and swaps for RGB assets over the Lightning Network. It wraps @utexo/rgb-lightning-node-bare, which interfaces with Rust C-FFI bindings using LDK and tokio.
This package is an alpha. Layers A and B are complete and operational. Layer C (full wiring) is in progress. Some methods are still in active development (🚧) or paused (⏸) — review the status column before depending on a specific method in production.

Why a Separate Package

The RGB Lightning Node manages its own seed through LDK’s KeysManager, which conflicts with the WDK convention where the secret manager owns the seed. wdk-rgb-lightning provides a WDK-compatible wrapper and coordination layer. Consolidation with wdk-wallet-rgb is planned once upstream improvements from LDK are merged.

Installation

Configuration

WalletManagerRgbLightning requires the seed mnemonic at construction time (not at unlock) because LDK’s KeysManager initialises the seed during node creation.

Classes

WalletManagerRgbLightning

Methods

unlockParams


WalletAccountRgbLightning

The account instance returned by getAccount().

Node Info

Peers

Channels

Invoices & Payments

Balances & Address

Swaps & HODL

Status legend: ✅ complete · 🚧 in active development · ⏸ paused

Usage Example

Using with wdk-wallet-rgb

Both packages are built on rgb-lib, so the on-chain experience — UTXO management, asset state, and RGB operations — is consistent between them. Developers familiar with wdk-wallet-rgb will find the on-chain behaviour works the same way in wdk-rgb-lightning. The packages are kept separate because LDK’s KeysManager currently owns its own seed, which conflicts with WDK’s convention where the secret manager holds the seed. Consolidation is planned once the required upstream LDK changes land.

Further Reading