scalus.cardano.ledger.PlutusScriptEvaluator
See thePlutusScriptEvaluator companion object
Evaluates Plutus V1, V2 or V3 scripts using the provided transaction and UTxO set.
Attributes
-
Note
-
It's an experimental API and may change in future versions, even in patch releases.
-
Companion
-
object
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
Members list
Evaluates Plutus scripts in a transaction.
Evaluates Plutus scripts in a transaction.
This is the main evaluation orchestrator that:
- Extracts redeemers from the transaction
- Builds datum and script lookup tables
- Evaluates each redeemer sequentially
- Tracks total budget consumption
- Returns all evaluated redeemers
Value parameters
-
tx
-
The transaction containing Plutus scripts and redeemers
-
utxos
-
The UTxO set used for script resolution
Attributes
-
Returns
-
Seq of evaluated redeemers with updated execution units
-
Throws
-
java.lang.IllegalStateException
if the transaction does not contain redeemers or if any script resolution fails