Additional Features
Simple Scripts

Simple Scripts

Atlas supports simple scripts, also known as native and timelock scripts. The functionality of simple scripts is explained in the ledger design document of Shelley & Mary era here (opens in a new tab) and also in cardano-node-wiki (opens in a new tab).

Simple scripts can be specified via exposed constructors of GYSimpleScript (opens in a new tab). They can also be read from their JSON representation as GYSimpleScript has a FromJSON (opens in a new tab) instance. We also provide a utility function, readSimpleScript (opens in a new tab), to read JSON representation from a file.

Simple scripts can also be attached to UTxO outputs, allowing them to be used later as reference scripts when building transactions. You can find an example here (opens in a new tab), that demonstrates how to interact with simple scripts, both when used as a reference and when given directly for transaction validation.