pub trait PreparePsbt {
// Required methods
fn prepare_tx(
&mut self,
destinations: &[(Address, Amount)],
fee_rate: FeeRate,
) -> Result<Psbt>;
fn prepare_drain_tx(
&mut self,
destination: Address,
fee_rate: FeeRate,
) -> Result<Psbt>;
}Expand description
Ability to construct funded PSBTs for specific destinations or to drain the wallet.
These methods are used to build transactions for boarding, exits, and fee bumping.
Required Methods§
Sourcefn prepare_tx(
&mut self,
destinations: &[(Address, Amount)],
fee_rate: FeeRate,
) -> Result<Psbt>
fn prepare_tx( &mut self, destinations: &[(Address, Amount)], fee_rate: FeeRate, ) -> Result<Psbt>
Prepare a Transaction which will send to the given destinations.
Sourcefn prepare_drain_tx(
&mut self,
destination: Address,
fee_rate: FeeRate,
) -> Result<Psbt>
fn prepare_drain_tx( &mut self, destination: Address, fee_rate: FeeRate, ) -> Result<Psbt>
Prepare a Transaction for sending all wallet funds to the given destination.