Initializes a new instance of the ExUnits class.
The amount of memory the script execution will consume.
The number of CPU steps that running ths script will take.
Private
#memPrivate
#originalPrivate
#stepsAdds the memory and cpu steps of the current ExUnits and the given ExUnits and returns the result.
The other ExUnits to be added with this ExUnits.
Static
fromDeserializes the ExUnits from a CBOR byte array.
The new ExUnits instance.
The CBOR encoded ExUnits object.
Static
fromCreates a ExUnits object from the given Core ExUnits object.
Generated using TypeDoc
Represent a measure of computational resources, specifically, how much memory and CPU a Plutus script will use when executed. It's an essential component to estimate the cost of running a Plutus script on the Cardano blockchain.
The two resources measured by ExUnits are memory and CPU. When a Plutus script is executed, it consumes both these resources. The ExUnits system quantifies this consumption, helping to ensure that scripts don't overrun the system and that they terminate in a reasonable amount of time.