Trait TxBuilderExt

Source
pub trait TxBuilderExt: Send + Sync {
    // Required method
    fn add_exit_claim_inputs<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        wallet: &'life1 Wallet,
        exit_outputs: &'life2 [&'life3 ExitVtxo],
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

BDK-backed onchain wallet implementation.

Available only when the onchain_bdk feature is enabled. Trait extension for TxBuilder to add exit outputs

When used, the resulting PSBT should be signed using crate::exit::Exit::sign_exit_claim_inputs.

Required Methods§

Source

fn add_exit_claim_inputs<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 mut self, wallet: &'life1 Wallet, exit_outputs: &'life2 [&'life3 ExitVtxo], ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementations on Foreign Types§

Source§

impl<Cs: Send + Sync> TxBuilderExt for TxBuilder<'_, Cs>

Source§

fn add_exit_claim_inputs<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 mut self, wallet: &'life1 Wallet, exit_outputs: &'life2 [&'life3 ExitVtxo], ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§