pub trait SpendableKeysInterface: NodeSigner + SignerProvider + Send + Sync {
    // Required methods
    fn spend_spendable_outputs(
        &self,
        descriptors: &[&SpendableOutputDescriptor],
        outputs: Vec<TxOut>,
        change_destination_script: Script,
        feerate_sat_per_1000_weight: u32,
        secp_ctx: &Secp256k1<All>
    ) -> Result<Transaction>;
    fn get_sweep_address(&self) -> Address;
}

Required Methods§

source

fn spend_spendable_outputs( &self, descriptors: &[&SpendableOutputDescriptor], outputs: Vec<TxOut>, change_destination_script: Script, feerate_sat_per_1000_weight: u32, secp_ctx: &Secp256k1<All> ) -> Result<Transaction>

source

fn get_sweep_address(&self) -> Address

Swept funds from closed channels are sent here This is implemented by setting the change destination to spend_spendable_outputs to this address.

Implementors§