mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-29 20:04:30 +01:00
* Add ability to parse an invoice * Simplify LNInvoice initialization * Add missing LNInvoice fields * Cargo fmt * Re-generate bindings after merging main branch * Explicitly check the invoice signature * Remove redundant signature check * Strip potential lightning: prefix before parsing bolt11
breez-liquid-sdk-cli
Setup
You'll need a Testnet LN node to test the sending and receiving operations. A simple solution is using Alby's testnet nodes. Read more about Alby's test setup here.
Commands
Start the CLI with
cargo run
To set a specific network, use one of
cargo run -- --network mainnet
cargo run -- --network testnet
To specify a custom data directory, use
cargo run -- --data-dir temp-dir
To set a custom log level, use
RUST_LOG=info|debug|warn cargo run
To specify a file to pipe logs to, use
RUST_LOG=info|debug|warn cargo run -- --log-file /tmp/log