Module test_helpers

Source

Functionsยง

create_transaction
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).
create_transaction_with_change
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.
op_true_script
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