This library demonstrates end to end examples of creating and executing Plutus scripts on chain.
This is done roughly in the following steps:
- Write your Plutus on chain code.
- Serialize your Plutus on chain code to the text envelope format (
cardano-cliexpects this format). - Create your transaction with the accompanying Plutus script(s).
- Submit transaction to execute Plutus script.
The off chain code is used for transaction construction. In this case we construct the transaction with cardano-cli and therefore we don't need to write any off chain code.
Our education director, Lars Brünjes, has an excellent series of tutorials on youtube. Further relevant Plutus documentation can be found here.