CDK LND
ALPHA This library is in early development, the API will change and should be used with caution.
LND (Lightning Network Daemon) backend implementation for the Cashu Development Kit (CDK).
Installation
Add this to your Cargo.toml:
[]
= "*"
Configuration for cdk-mintd
Config File
[]
= "lnd"
[]
= "https://localhost:10009"
= "/path/to/.lnd/tls.cert"
= "/path/to/.lnd/data/chain/bitcoin/mainnet/admin.macaroon"
= 0.02 # Optional, defaults to 2%
= 2 # Optional, defaults to 2 sats
Environment Variables
All configuration can be set via environment variables:
| Variable | Description | Required |
|---|---|---|
CDK_MINTD_LN_BACKEND |
Set to lnd |
Yes |
CDK_MINTD_LND_ADDRESS |
LND gRPC address (e.g., https://localhost:10009) |
Yes |
CDK_MINTD_LND_CERT_FILE |
Path to LND TLS certificate | Yes |
CDK_MINTD_LND_MACAROON_FILE |
Path to LND macaroon file | Yes |
CDK_MINTD_LND_FEE_PERCENT |
Fee percentage (default: 0.02) |
No |
CDK_MINTD_LND_RESERVE_FEE_MIN |
Minimum fee in sats (default: 2) |
No |
Example
Minimum Supported Rust Version (MSRV)
This crate supports Rust version 1.75.0 or higher.
License
This project is licensed under the MIT License.