Plutus.Script.Utils.V2.Tx
scriptTxOut :: Validator -> Value -> OutputDatum -> HasReferenceScript -> TxOut Source #
Create a transaction output locked by a validator script and attach the given data script.