Programming Languages

Using the Marlowe Playground

The Marlowe Playground is a browser-based environment for designing and developing contracts, using either code or a no-code visual editor. This environment simulates contract behaviour and analyzes all the possible behaviours of a contract ('static analysis') without having to execute it on the blockchain. You can see how the contract evolves as participants interact with it, setting choices and making deposits of currency. It is possible to 'undo' actions and try other paths through the contract. The Playground also allows you to perform a 'static analysis' that will tell you whether all payments that your contract mandates will be made in full, and display examples of how a payment can fail. Details are described in detail in the online tutorial, which is part of the Marlowe Playground environment.

Contracts can be developed in two different ways: One, using a visual editor that allows you to put a Marlowe contract together piece by piece in an intuitive way. At each stage you choose one of a selection of components that fit into a gap in the contract, just like fitting a piece into a jigsaw puzzle. And two, using code. If you want to use code, then you can develop Marlowe contracts embedded in Haskell, which lets you name parts of your contract to make it easier to read it and comprehend it.

© IOHK 2015 - 2022

Cardano is an open-source project.

Cardano is a software platform ONLY and does not conduct any independent diligence on, or substantive review of, any blockchain asset, digital currency, cryptocurrency or associated funds. You are fully and solely responsible for evaluating your investments, for determining whether you will exchange blockchain assets based on your own judgement, and for all your decisions as to whether to exchange blockchain assets with Cardano. In many cases, blockchain assets you exchange on the basis of your research may not increase in value, and may decrease in value. Similarly, blockchain assets you exchange on the basis of your research may fall or rise in value after your exchange.

Past performance is not indicative of future results. Any investment in blockchain assets involves the risk of loss of part or all of your investment. The value of the blockchain assets you exchange is subject to market and other investment risks