<p>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.</p>
<p>I suggest going through the exercises of the <a href="https://github.com/input-output-hk/Alonzo-testnet" rel="nofollow noreferrer">Alonzo-testnet</a> to learn how to interact with Plutus scripts using <code>cardano-cli</code>.</p>
<p>The PAB is under heavy development but we don't have any release date for either the testnet or the mainnet.</p>

CC BY-SA 4.0
2021-09-02T07:12:38.987Z
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
CC BY-SA 4.0
2021-09-02T10:59:01.230Z
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](https://github.com/input-output-hk/Alonzo-testnet).
Alain Magazin
CC BY-SA 4.0
2021-09-03T02:03:16.390Z
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.
Michael Daconta
CC BY-SA 4.0
2021-09-03T09:24:58.973Z
Exercises are meant to have holes, if you want step-by-step check [Alonzo-solutions](https://github.com/input-output-hk/Alonzo-testnet/tree/main/Alonzo-solutions). The documentation **is** lacking but we have to accept it and keep digging it ourselves.
Alain Magazin
CC BY-SA 4.0
2021-09-01T18:54:36.943Z
2021-09-02T12:34:10.673Z
2021-09-02T12:34:10.673Z
Alain Magazin
<p>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.</p>
<p>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?</p>
<p>Is there some example code to look at?</p>

<plutus><pab>
How to run Plutus code on Alonzo Purple without the PAB?
# How to run Plutus code on Alonzo Purple without the PAB?

(Asked by: username_0 on 2021-09-01)

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?

**Tags:** plutus, pab

---

## 1 answers

### Answer by username_1 on 2021-09-01. Score: 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](https://github.com/input-output-hk/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.

> **Comments:**
> **username_0**: 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?  
> **username_1**: 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](https://github.com/input-output-hk/Alonzo-testnet).  
> **username_2**: 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.  
> **username_1**: Exercises are meant to have holes, if you want step-by-step check [Alonzo-solutions](https://github.com/input-output-hk/Alonzo-testnet/tree/main/Alonzo-solutions). The documentation **is** lacking but we have to accept it and keep digging it ourselves.  

---

