Function create_transaction

Source
pub fn create_transaction(tx_to_spend: &Transaction, fee: u64) -> Transaction
Expand description

Creates a transaction that spends the first output of provided transaction. Assumes that the output being spent has opTrueScript as its scriptPublicKey. Creates the value of the spent output minus provided fee (in sompi).