Initializes a new instance of the CostModel class.
The plutus language version.
The costs.
Private
#costsPrivate
#languagePrivate
#isGets the language version of this cost model.
The language version.
Static
newCreates a new Plutus V1 cost model.
An array containing the costs for all operations.
Static
newCreates a new Plutus V2 cost model.
An array containing the costs for all operations.
Static
newCreates a new Plutus V3 cost model.
An array containing the costs for all operations.
Generated using TypeDoc
The execution of plutus scripts consumes resources. To make sure that these scripts don't run indefinitely or consume excessive resources (which would be harmful to the network), Cardano introduces the concept of "cost models".
Cost models are in place to provide predictable pricing for script execution.
It's a way to gauge how much resource (in terms of computational steps or memory) a script would use.