TxBuilderInterface
A TxBuilder is created by calling build_tx on a wallet. After assigning it, you set options on it until finally calling finish to consume the builder and generate the transaction.
Inheritors
Functions
Fill-in the PSBT_GLOBAL_XPUB field with the extended keys contained in both the external and internal descriptors.
Add a recipient to the internal list of recipients.
Add a utxo to the internal list of unspendable utxos.
Set a specific ChangeSpendPolicy. See TxBuilder::do_not_spend_change and TxBuilder::only_spend_change for some shortcuts. This method assumes the presence of an internal keychain, otherwise it has no effect.
Set the current blockchain height.
Do not spend change outputs.
Spend all the available inputs. This respects filters like TxBuilder::unspendable and the change policy.
Set an absolute fee The fee_absolute method refers to the absolute transaction fee in Amount. If anyone sets both the fee_absolute method and the fee_rate method, the FeePolicy enum will be set by whichever method was called last, as the FeeRate and FeeAmount are mutually exclusive.
Only spend utxos added by TxBuilder::add_utxo.
Only spend change outputs.
The TxBuilder::policy_path is a complex API. See the Rust docs for complete information: https://docs.rs/bdk_wallet/latest/bdk_wallet/struct.TxBuilder.html#method.policy_path
Set an exact nSequence value.
Replace the recipients already added with a new list of recipients.
Replace the internal list of unspendable utxos with a new list.