Skip to main content

Questions tagged [plutus-playground]

Plutus Playground provides an environment for writing and testing smart contracts before they are released on the Cardano blockchain.

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

Localhost not displaying anything after running npm start in plutus-playground-client

I'm on a Mac running Big Sur with the intel chip. I've followed all the steps to set up the local Plutus environment as suggested by Lars in the Plutus Pioneer 3rd iteration. Next step is to get the ...
Tucker Triggs's user avatar
0 votes
1 answer
24 views

Error evaluating Simulation in playground

I was finally able to run the playground and I was following exactly what the instructor was saying on the video, adding the wallets and actions but only the genesis transaction shows up when I ...
user6184's user avatar
0 votes
1 answer
270 views

Not in scope: type constructor or class ‘PaymentPubKeyHash’ - Week 1 Pioneers Exercise

I'm trying to compile the week 1 code on plutus playground hosted locally, but I'm getting this error: error: Not in scope: type constructor or class ‘PaymentPubKeyHash’ | 57 | { aSeller ...
Lucas Araujo's user avatar
2 votes
1 answer
28 views

Formatted error messages in Playground

Is there any way to get the Playground errors with proper indentations? This can help read better the issue at hand. Instead of getting one huge line: (Tx {txInputs = fromList [TxIn {txInRef = ...
LexTRX's user avatar
  • 343
0 votes
1 answer
35 views

English Auction Compilation Failure. Need help understanding the compile error message

I need help. Followed the lecture up to the compile. Got this failure : ConnectionError (HttpExceptionRequest Request { host = "localhost" port = 8080 secure = False requestHeaders = [("...
CryptoBoomer's user avatar
0 votes
2 answers
173 views

How to resolve npm build failure after running `GC_DONT_GC=1 npm start`?

MacOs Catalina 10.15.7 (Intel) After facing issue here, I ran the command GC_DONT_GC=1 npm run start and it build some libraries, however failed with following error (plutus-playground-server was up ...
Viktor's user avatar
  • 1
2 votes
2 answers
226 views

/bin/plutus-playground-server: No such file or directory

Can't get plutus-playground-server to start. plutus-playground-server: for development use only /nix/store/601kdlvidgan842yfklrmvpbz6a5xkf7-plutus-playground-server/bin/plutus-playground-server: line ...
ryanaverell's user avatar
3 votes
2 answers
201 views

npm run start in plutus-playground-client throws several "Could not find module" errors

I'm trying to run the plutus-playground-client. My OS is macOS Big Sur 11.6.2 I have set up the environment with the following steps based on the nix install instructions from: https://docs.plutus-...
Woodland Pools's user avatar
1 vote
0 answers
66 views

plutus-pab still not building

I had plutus-playground up and running with a prior commit, but am trying to get the latest version running. I have cloned everything fresh in a new folder. I have successfully run the following ...
XiTouch's user avatar
  • 349
0 votes
0 answers
34 views

plutus-playground-server exits with with network error

When starting the plutus-playground-server in a nix-shell on an Ubuntu 20.04 machine (ref. step 4 in the plutus setup instructions), it terminates with the following error: Interpreter ready plutus-...
Paul Gardner's user avatar
1 vote
2 answers
114 views

First time compiling sample Plutus code in local Plutus Playground failed. Can't figure out why

I've been a mainframe programmer my for decades. Never developed on small server platforms. So the biggest challenge I'm having is dealing with the nerve wracking OS setup, Github cloning, server ...
CryptoBoomer's user avatar
1 vote
2 answers
113 views

git checkout 41149926c108c71831cfe8d244c83b0ee4bf5c8a for English Auction doesn't work

According to cabal.project script for the English Auction, the git branch for this plutus script is: source-repository-package type: git location: https://github.com/input-output-hk/plutus-...
d_fajardo's user avatar
  • 198
0 votes
1 answer
189 views

plutus-playground-client crashes on Intel Mac (Big Sur)

After setting up environment for cohort 3 of the pioneers program, running the plutus-playground-client crashes on my Intel Mac (Big Sur). I've been able to successfully set up Nix and all the code ...
Steve Mason's user avatar
1 vote
2 answers
1k views

(Solved) error:\n Variable not in scope: main :: GHC.Types.IO a0 in English Auction

I'm trying to compile the English Auction script on a local plutus-playground-client session and I'm getting this error: error:\n Variable not in scope: main :: GHC.Types.IO a0 Any help on why ...
d_fajardo's user avatar
  • 198
0 votes
1 answer
170 views

nix-build fails to build plutus or plutus-playground server/client with error: reading from file: Is a directory

I'm attempting to finish the setup for plutus pioneers cohort3 on wsl2 (Windows 10) with Ubunutu 20.04 Nix version: 2.5.1 I cloned the plutus-apps repo (and previously tried the plutus repo before ...
suntzuisafterU's user avatar
0 votes
2 answers
96 views

Where do I find correct and current git checkout?

Update and detailed answer Feb 4, 2022. For the purposes of the Plutus Pioneer Program, the checkout information can be found in the weekly cabal.project file, located (for Week04, as an example, and ...
XiTouch's user avatar
  • 349
0 votes
1 answer
101 views

Webpack warning when starting plutus-playground-client

I am getting a warning when I run npm start on the plutus-playground-client: ℹ 「wds」: webpack output is served from / ℹ 「wds」: Content not from webpack is served from /home/datapool/plutus-apps/plutus-...
d_fajardo's user avatar
  • 198
0 votes
2 answers
87 views

What is minimum RAM for running plutus-playground-server on Ubuntu VirtualBox?

I am facing this issues when running $ nix-build -A plutus-playground.server > error: 1 dependencies of derivation > '/nix/store/39qxl421bhkzks2zrra7vy3yl6qqhsib-zlib-lib-zlib-0.6.2.3-config.drv'...
Miro's user avatar
  • 1
0 votes
1 answer
82 views

Need help installing pioneer-based code on intel Mac (Big Sur)

I'm following the instructions laid out in https://docs.plutus-community.com/docs/setup/MacOS.html to setup my intel Mac (Big Sur) dev environment for cohort 3 of the pioneer program and having issues....
Steve Mason's user avatar
1 vote
1 answer
97 views

slotToEndPOSIXTime error

Firstly, when I attempt to build a repl of week01 what I get is Then when I attempt to use slotToEndPOSIXTime I get Any help would be greatly appreciated, thanks! Everything else works great up ...
Deceptikon's user avatar
1 vote
2 answers
285 views

nix-shell command causes error "invalid character in Base64 string"

I'm following the Plutus Env: Setup Starter Pack guideline to run a Plutus Playground Local Instance. At step 4, when running the command nix-shell, I got the error message error: invalid character in ...
Nhan Nguyen's user avatar
0 votes
1 answer
92 views

Unable to start /plutus-apps client application

Error is occurring for MacOS 12.1 Monterey. Please, let me know, if I should include additional details. I am going through the step noted in this document in order to setup local Plutus app: https://...
Radoslav Naidenov's user avatar
1 vote
3 answers
294 views

Error running plutus-playground-client in Linux

I have successfully installed nix, cabal and have setup the IOHK binary cache. I cloned the plutus-app repository and successfully built the Haskell packages and other artifacts with nix. Then running ...
d_fajardo's user avatar
  • 198
2 votes
1 answer
466 views

Lessons Learned setting up plutus-playground - feedback welcome [closed]

I have finally got the plutus-playground running on 2 separate machines. Each machine is a Mac running Catalina 10.15.7. After extensive trial and error (some self inflicted) I have identified several ...
XiTouch's user avatar
  • 349
0 votes
2 answers
97 views

Normal buildtime for "nix-build -A plutus-playground.server"

How long should the following build normaly take, when the correct "IOHK binary cache" is set at "nix.conf"? nix-build -A plutus-playground.server
Andreas Hauser's user avatar
2 votes
2 answers
112 views

(Solved) Error building Plutus Application Framework

I am trying to build the Plutus Application Framework. I'm running on Archlinux and both Nix and cabal are installed properly as far as I can tell. I have also set the IOHK Binary Caches. However when ...
d_fajardo's user avatar
  • 198
1 vote
1 answer
60 views

Setting GitHub ID in plutus-playground-server local env

I have been able to get my local nix install of the server and client running on my ubuntu distro. However, I can't find where I can set the GitHub ID for the local server configuration and that is ...
Troy Bertolino's user avatar
1 vote
1 answer
88 views

segmentation fault when building Plutus-playground.server

I'm following the instructions for installing the Plutus-playground found here I discovered I must execute the following before step 10 git clone https://github.com/input-output-hk/plutus-apps.git I ...
XiTouch's user avatar
  • 349
2 votes
1 answer
51 views

Online Playground does not appear in Safari

Using macOS Catalina 10.15.7 and Safari v 15.2 (15612.3.6.1.8). The Playground URL (https://playground.plutus.iohkdev.io) generates a blank page. It loads fine on Chrome and Brave (haven't actually ...
XiTouch's user avatar
  • 349
1 vote
1 answer
99 views

Plutus Playground: error evaluating 'hello, world' example

When I try to evaluate the "Hello, world" example at https://playground.plutus.iohkdev.io/, I get the following error: DecodingError: An error occurred while decoding a JSON value: Under '...
szymekpi's user avatar
1 vote
2 answers
104 views

Plutus Playground vs Plutus Application Backend vs Plutus Application Framework

Is the Plutus Application Backend another name for the Plutus Playground? If not what is the Plutus Application Backend? Also is the Plutus Application Framework the Plutus Playground?
Floof99's user avatar
  • 472
2 votes
1 answer
166 views

"bash: plutus-pab-generate-purs: command not found" issue when run plutus-playground on Ubuntu

I've followed guide for running plutus-playground . But when I npm run start on plutus-playground-client, it says 'bash: plutus-pab-generate-purs: command not found'. Please check screenshot on ...
Frankuh's user avatar
  • 21
0 votes
1 answer
74 views

I'm getting errors in Week05 Solution.hs

Im trying to run Week05's home work solution 1 on the online plutus playground enviornment but I keep getting errors in lines 79 to 84 dose anybody know how to fix this? code pasted below along with ...
Floof99's user avatar
  • 472
0 votes
1 answer
64 views

plutus-playground-server sense of time is incorrect

I think my plutus-playground-server has an incorrect notion of time. I'm working on the homework for lecture 3 and keep running into issues with the simulator. Here's a screenshot of what I'm ...
Paymahn Moghadasian's user avatar
1 vote
1 answer
106 views

Error Starting plutus-playground-client

I'm having error running the plutus-playground-client. Not sure where to look, here is the complete error log. Any suggestions on how to fix? 0 info it worked if it ends with ok 1 verbose cli [ 1 ...
Local Host's user avatar
1 vote
1 answer
34 views

Plutus Pioneer Program Week02: grab endpoint not working and trace log being cut off

Here you can see the 'grab' endpoint being correctly set. And here you can see the Tx2 slot for the grab endpoint is missing. Also, some lines of the trace are being cut off, I'm not sure if this is ...
Anthony's user avatar
  • 11
2 votes
1 answer
72 views

Plutus pioneer program - Lecture #1 - Can't understand behaviour of transactions

Why is the second bid of wallet 2 getting ignored when I test it like this? If the first transaction of wallet 2 was also valid, then the second suceeds. I'm just curious if this is somehow expected ...
pCosta99's user avatar
3 votes
2 answers
66 views

When can we expect live deployment of the Plutus Playground

I am working with a low end device, and the live deployment of the playground is what I'm counting on. When can I expect it and is there any community deployed server that is active now?
isuryanarayanan's user avatar
4 votes
1 answer
59 views

Choosing Ubuntu over WSL for Plutus development

I use a low end laptop as my daily driver running a WSL Ubuntu-20.04 as my platform of choice. When trying to run the plutus-playground it often crashes. Should I try using Ubuntu or any other Linux ...
isuryanarayanan's user avatar
2 votes
1 answer
131 views

plutus-playground-server: user error (Error evaluating simulation: JsonDecodingError

I'm following the first lecture in the plutus pioneer program but I cannot set up the local environment. The error happens when running npm start on a nix-shell after initializing the playground ...
martin's user avatar
  • 81
1 vote
1 answer
85 views

Failing to set up plutus on windows

So I'm using WSL Windows 10 and I set up IOHK hashes, but everytime I run nix-shell I get following error: build of '/nix/store/9im4jp068ykqsm4s8996px605p6zrw7q-Agda-plan-to-nix-pkgs.drv' failed. ...
HalfPaul's user avatar
2 votes
1 answer
90 views

What is the benefit of installing plutus playground locally?

In these instructions for working through the plutus pioneer program, it suggests installing the playground locally: https://tutorials.cardanoacademy.io/plutus-pioneer-program/setting-up-plutus-...
Michael Daconta's user avatar
4 votes
1 answer
145 views

Setting up Plutus environment for Apple Silicon computer

I'm trying to setup dependencies to write and test plutus contracts, but I'm worried that the dependencies may not be compatible with the M1 chip. I have been following these instructions https://www....
Kaleb Amarante's user avatar
6 votes
1 answer
142 views

How can you run the Plutus Playground and serve the Haddock documentation from the VSCode DevContainer?

I am still looking to settle on a dev environment for Plutus contracts. I am thinking about using VSCode with the devcontainer, but would like to know how well it all integrates. Is it easy to have ...
vcwebco's user avatar
  • 470
6 votes
2 answers
183 views

Plutus Pioneer Cohort 2 Lecture 3

I was going through the lecture on Youtube and this is the one with Vesting example where: wallet 1 gifts 20 ADA to wallet 2 in 2 different slots wallet 1 gifts 10 ADA to wallet 3 in a slot later on, ...
Kuldeep Srivastava's user avatar
3 votes
1 answer
66 views

Is there any keyword to get the epoch details or stake-pool details in Plutus Smart Contract?

I am trying to write a smart contract where I can get the awards for delegators of a particular stake pool. I need to know if that is right now possible to do using Plutus, if yes, pls suggest me.
Kuldeep Srivastava's user avatar
5 votes
2 answers
184 views

npm build of plutus client fails with "permission denied"

I am trying to run the Plutus playground using the Gitbook recipe (https://docs.plutus-community.com/docs/setup/WindowsWSL.html). At step 15, the server starts fine, but trying to run the client with &...
KenA's user avatar
  • 141
5 votes
1 answer
421 views

What does @ prefix means?

like this: auctionInstance = Scripts.validator @Auctioning and Hello-world app from https://playground.plutus.iohkdev.io/tutorial/tutorials/plutus-playground.html#running-the-hello-world-app hello = ...
mackie's user avatar
  • 343
7 votes
3 answers
186 views

Deriving Show Compilation Error on Plutus Playground

I seem to be getting a compilation error when I try to compile any of the example files on my local host configuration for the Plutus Playground. The error is pictured here: And basically it seems ...
Conor Devlin's user avatar
4 votes
1 answer
254 views

Writing basic validator scripts

I need someone to explain to me line by line. The code is from plutu tutorials. https://docs.cardano.org/projects/plutus/en/latest/plutus/tutorials/basic-validators.html All the code in that page I ...
mackie's user avatar
  • 343