Plutus' scripts are pieces of code that implement pure functions with True or False outputs. These functions take several inputs such as Datum, Redeemer and the transaction context to decide whether an output can be spent or not.

V2 was introduced in the Vasil hard fork.

The main changes in V2 of Plutus were to the interface to scripts. The ScriptContext was extended to include the following information:

  • The full “redeemers” structure, which contains all the redeemers used in the transaction
  • Reference inputs in the transaction (proposed in CIP-31)
  • Inline datums in the transaction (proposed in CIP-32)
  • Reference scripts in the transaction (proposed in CIP-33)

Hierarchy

  • PlutusV2Script

Constructors

Properties

#compiledByteCode: HexBlob
#originalBytes: undefined | HexBlob = undefined

Methods

Generated using TypeDoc