0

I create a smart contract with Marlowe from https://play.marlowe-finance.io

I now want to deploy the contract in the preview testnet and later mainnet. I imagine it must be somehow converted into plutus script. And then use the plutus script to create transaction via cardano-cli.

Is there a way to convert Marlowe into plutus script? If not, how can I interact with smart contract created from Marlowe in the testnet/mainnet?

1 Answer 1

1

Here are four methods for running Marlowe on the blockchain, in increasing order of difficulty:

  1. If you want to run your contract at the command line using marlowe-cli, install marlowe-cli and follow the instructions in the tutorial for running contracts with marlowe-cli. Here is a video lecture that provides an overview of marlowe-cli.
  2. If you want to run your contract in a Jupyter notebook, then use git to clone github.com/input-output-hk/marlowe-cardano, run nix develop --command jupyter-lab from the marlowe-cli/ folder, open the notebook marlowe-cli/lectures/04-marlowe-cli-concrete.ipynb, and follow the instructions. Here is a video lecture of running a contract from within a Jupyter notebook.
  3. If you want to run your contract from the command-line using the Marlowe Runtime backend, then follow the tutorial for Marlowe Runtime. Here is a video demonstration.
  4. If you want to run your contract using Marlowe Lambda, follow the example for using Marlowe Lambda from the command line or study the example web application for Marlowe Lambda. Here is video of a command-line example and here is a video of a web app example.

Is there a way to convert Marlowe into plutus script? If not, how can I interact with smart contract created from Marlowe in the testnet/mainnet?

Marlowe contracts are run as datum in the Marlowe validator, which is a Plutus script that can run any Marlowe contract. There is no need (or possibility) of converting a Marlowe contract directly to Plutus.

Also, mainnet is disabled in the Marlowe tools, but you can alter the source code here and/or here to enable mainnet if you want to run there. Note that Marlowe's audit is not complete, so it is not advisable to run on mainnet.

3
  • Damn! you're good
    – Adam
    Dec 3, 2022 at 6:17
  • Just realize you're the guy in the video, the creator himself. Good job, man.
    – Adam
    Dec 3, 2022 at 6:39
  • Here are some more example Marlowe contracts: github.com/input-output-hk/….
    – B W Bush
    Mar 7 at 22:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.