lightning_signer::util::transaction_utils

Function create_spending_transaction

Source
pub fn create_spending_transaction(
    descriptors: &[&SpendableOutputDescriptor],
    outputs: Vec<TxOut>,
    change_destination_script: ScriptBuf,
    feerate_sats_per_1000_weight: u32,
) -> Result<Transaction>
Expand description

Create a spending transaction, helper function used in [KeysManagerClient::spend_spendable_outputs].

[KeysManagerClient::spend_spendable_outputsspend_spendable_outputs] vls_protocol_client::KeysManagerClient::spend_spendable_outputsspend_spendable_outputs