v0.6.1-rc.2
Description
This release adds the ability to calculate transaction fees without broadcasting, allowing users to estimate costs before committing to a transaction.
What's New
- New
calculate_total_feemethod onOnchainPaymentthat simulates creating a transaction and returns the total fee in satoshis calculate_total_feeuses the same validation assend_to_address- checks UTXOs, reserves, and fund availability
Usage
let fee = node.onchain_payment().calculate_total_fee(
&address,
amount_sats,
fee_rate,
utxos_to_spend
)?;