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.

Hierarchy

  • CostModel

Constructors

Properties

#costs: number[]

Methods

  • Gets whether the given operation is valid for this Language version.

    Returns

    true if is a valid operation; otherwise; false.

    Parameters

    • operation: number

      The operation we are trying to validate.

    Returns boolean

Generated using TypeDoc