Constructs a Bitcoin transaction from the given UTXOs and primary output specification. This function handles the common pattern of Bitcoin transaction construction: 1. Creates inputs from the selected UTXOs 2. Creates the primary output (payment or OP_RETURN data) 3. Adds a change output if the remainder exceeds the dust threshold 4. Returns both the unsigned transaction and previous outputs nee
(
utxos_to_spend: Vec<&Utxo>,
own_address: &Address,
primary_output: &PrimaryOutput,
fee: u64,
)
source not stored for this graph (policy: none)
no test coverage detected