Files
cdk/crates/cdk-lnbits
thesimplekid 8dec41dd55 refactor(cdk-lnbits): migrate to LNbits v1 websocket API and remove w… (#987)
* refactor(cdk-lnbits): migrate to LNbits v1 websocket API and remove webhook support

- Remove webhook-based payment notifications in favor of v1 websocket API
- Add explicit documentation that only LNbits v1 API is supported
- Remove webhook_url parameter and related router setup code
- Simplify payment status handling by removing pending status logic
- Switch to local lnbits-rs dependency for development
- Remove unused axum dependency and clean up imports
- Update configuration documentation and examples

* refactor(cdk-lnbits): extract payment processing logic into helper methods

Improve code readability by separating message processing, payment response
creation, and payment hash decoding into dedicated methods. This reduces
complexity in the main payment waiting loop while maintaining identical
functionality

* chore: bump lnbits-rs
2025-08-21 21:54:48 +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.