Files
cdk/crates/cdk-lnbits
thesimplekid 7a71a37eab refactor(payment): replace wait_any_incoming_payment with event-based system (#1019)
Rename wait_any_incoming_payment to wait_payment_event and change return type
from WaitPaymentResponse stream to Event stream. This introduces a new Event
enum that wraps payment responses, making the system more extensible for
future event types.

- Add Event enum with PaymentReceived variant
- Update MintPayment trait method signature
- Refactor all payment backend implementations (LND, CLN, LNBits, fake wallet)
- Update mint and payment processor to handle new event stream forma
2025-08-31 17:26:50 +01:00
..

CDK LNBits

crates.io Documentation MIT licensed

ALPHA This library is in early development, the API will change and should be used with caution.

LNBits backend implementation for the Cashu Development Kit (CDK). This provides integration with LNBits for Lightning Network functionality.

Note: Only LNBits v1 API is supported. This backend uses the websocket-based v1 API for real-time payment notifications.

Installation

Add this to your Cargo.toml:

[dependencies]
cdk-lnbits = "*"

License

This project is licensed under the MIT License.