mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-29 11:54:26 +01:00
* Receive: Add magic routing hint support * Send: add MRH support * Filter out and reject self-transfers * Extract self-transfer validation in own fn * PrepareSendResponse: use onchain fee as fees_sat if MRH present * Use onchain tx fee as payment fee, if MRH used for direct onchain tx * Fix swap fee calculation when MRH is used * Apply boltz-client patch that aborts send if tx broadcast fails * Send with MRH: return pending payment * Receive with MRH: validate BIP21 amount, address * Emit remaining events for MRH Send, Receive * Sync: update swap info and emit events after new tx data is persisted * Extract MRH send into its own send_payment_via_mrh() * Pending Send via swap: store tx fees for pseudo-tx * Fix clippy
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