[][src]Module bdk::wallet::tx_builder

Transaction builder

Example

// Create a transaction with one output to `to_address` of 50_000 satoshi, with a custom fee rate
// of 5.0 satoshi/vbyte, only spending non-change outputs and with RBF signaling
// enabled
let builder = TxBuilder::with_recipients(vec![(to_address.script_pubkey(), 50_000)])
    .fee_rate(FeeRate::from_sat_per_vb(5.0))
    .do_not_spend_change()
    .enable_rbf();

Structs

TxBuilder

A transaction builder

Enums

ChangeSpendPolicy

Policy regarding the use of change outputs when creating a transaction

TxOrdering

Ordering of the transaction's inputs and outputs