3

I am trying to run my Plutus code on Alonzo Purple. However, the PAB currently isn't able to connect to the Alonzo Purple testnet.

Since the off-chain code lives in the Contract monad, do I need to somehow write code to 'interpret' the Contract monad and issue commands against the wallet and node?

Is there some example code to look at?

2

For now, and until we have tools for it (the PAB for instance), you have to write your off-chain code as CLI transactions, which is obviously not ideal but the only solution at the moment.

I suggest going through the exercises of the Alonzo-testnet to learn how to interact with Plutus scripts using cardano-cli.

The PAB is under heavy development but we don't have any release date for either the testnet or the mainnet.

4
  • What does 'write off-chain code as CLI transactions' mean? I understand that I'll have to call the cardano-node/cardano-cli/wallet to submit transactions and query the blockchain and what not. However, the off-chain code lives in the Contract monad. So, do you think I also need a layer to interpret the effects from the Contract free monad into the CLI? If so, is there any code examples I can take a look at?
    – Attilah
    Sep 2 at 7:12
  • No, there is no interpreter for now. What I mean by CLI transactions is, whatever off-chain code you have in your Contract monad you can re write it as a CLI transaction (because off-chain is nothing more than transactions). I suggest looking into the docs of cardano-cli and through the exercises of the Alonzo-testnet. Sep 2 at 10:59
  • 1
    I looked at the Alonzo-testnet exercises but those pages are just an outline of exercises. There was no detail and no step-by-step instructions. Am I missing something? I will be honest here - trying to learn this is becoming an exercise in frustration due to a lack of quality documentation. Sep 3 at 2:03
  • Exercises are meant to have holes, if you want step-by-step check Alonzo-solutions. The documentation is lacking but we have to accept it and keep digging it ourselves. Sep 3 at 9:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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