How do I export my .hs contract to .Plutus? Please provide step by step guidance.

1 Answer 1


You can find a good example in Exercise4-solution of Alonzo-testnet program.

Source code is here: plutus-helloworld, if you have any doubt check the code to understand what it does.

Basically you need to:

  1. Create an executable plutus-helloworld as defined in plutus-helloworld.cabal file
  2. Compile the plutus file using: cabal run plutus-helloworld -- 1 helloworld2.plutus
  3. Build the address: cardano-cli address build --payment-script-file helloworld2.plutus --testnet-magic 8 --out-file helloworld2.addr

Then you can follow the exercise solution.

Your Answer

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

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