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).
Creates a transaction that spends the outputs of specified indexes (if they exist) of every provided transaction and returns an optional change.
Assumes that the outputs being spent have opTrueScript as their scriptPublicKey.
Returns a P2SH script paying to an anyone-can-spend address,
The second return value is a redeemScript to be used with txscript.pay_to_script_hash_signature_script