Questions tagged [plutus-playground]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
61 views

Can one find the English Auction Example on the Playground somewhere?

I want to open the English Auction example. I was looking for it on the playground, but couldn't find it. Where did I go wrong? First I have checked out the commit with SHA1 hash ...
1 vote
1 answer
34 views

cardano-cli not showing utxo but Testnet Blockchain Explorer does

I have requested funds via Faucet, twice in fact because the first one I thought the request didn't go through but when I run: cardano-cli query utxo --address $(cat 01.addr) --testnet-magic ...
0 votes
1 answer
27 views

ConnectionError: There was a problem with the response body: Unexpected token T in JSON at position 0

I am having an issue with compiling any contracts on the local playground. It doesn't matter even when trying to compile the example contracts that are provided I keep getting this error. I have no ...
3 votes
6 answers
164 views

What is the purpose of the `valHash :: Ledger.ValidatorHash` function in the Plutus Pioneer Program's Week 2 homework?

The homework for Week 2 involves implementing validators for two Plutus contracts. Details are here. Spoiler alert! This probably gives away the answer to Week 2's first homework problem: -- ... ...
0 votes
2 answers
73 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 ...
1 vote
0 answers
10 views

Why can't I use the same wallet more than once in Plutus Playground?

I'm currently testing my app in the "Plutus Playground" and the simulation will not let me call an endpoint from the same contract more than once. When I try to use the same wallet, the ...
1 vote
1 answer
80 views

Error when executing npm start in plutus-playground-client

I get this error when I try to execute npm start in the plutus-playground-client directory 10% building 0/1 entries 0/0 dependencies 0/0 modulesℹ 「wds」: Project is running at https://0.0.0.0:8009/ ℹ 「...
0 votes
1 answer
12 views

Did I update Plutus Apps Repo Wrong?

I just did a git pull updating my plutus repos from the one used in plutus pioneers 3 to the full state. I did not choose to move the HEAD to the commit mentioned and wanted to see what happens if I ...
1 vote
1 answer
99 views

error: suspicious ownership or permission with nix-shell command on plutus-apps repository

Using the nix-shell command in a docker container on GitHub codespaces results in the following error: $ nix-shell --show-trace trace: To materialize project.plan-nix for cabal-install entirely, pass ...
2 votes
1 answer
37 views

plutus playground simulator wait action question

When using the plutus playground simulator: I'm having trouble finding documentation on the simulator wait actions. What are the differences in functionality between the "wait for" and &...
0 votes
1 answer
22 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 ...
0 votes
0 answers
7 views

How to set up plutus-playground on Windows

I have some struggle setting up the plutus-playground on windows 11 & wsl2. so far I have done the following: installed nix & restarted the terminal created the etc/nix/nix.conf file and ...
1 vote
1 answer
78 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 ...
4 votes
2 answers
55 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?
1 vote
2 answers
102 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 ...
0 votes
1 answer
84 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 ...
1 vote
2 answers
93 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-...
0 votes
1 answer
56 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-...
2 votes
1 answer
129 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 ...
3 votes
1 answer
120 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 ...
1 vote
1 answer
22 views

Where does the PAB run?

I understand that PAB is a backend that: provides a standardized environment in which Plutus applications run provides disciplined state management presents discoverable interfaces to the external ...
1 vote
1 answer
61 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?
0 votes
2 answers
67 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 ...
0 votes
1 answer
63 views

Select only one UTxO from script address

I need to get only one UTxO from the script address, where its datum hash matches the redeemer hash. For example I have locked two UTxO with 10 Ada and the DatumHash "house" at the script ...
0 votes
1 answer
43 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 ...
0 votes
1 answer
28 views

Error signer not found - txInfoSignatories

I'm trying to implement lock and withdraw of an NFT, but when I tried to check the signer on-chain with the function: signer :: PubKeyHash signer = case txInfoSignatories (scriptContextTxInfo ctx) of ...
1 vote
1 answer
93 views

Can't compile Plutus Playground examples: Could not find module `Playground.Contract' (Ubuntu 20.04)

I can't compile any of the example scripts using Plutus Playground gui: Compilation Error, Line 2, Column 1 (jump) error: Could not find module `Playground.Contract' Use -v (or `:set -v` in ...
0 votes
1 answer
74 views

On the off-chain code of homework 3 cohort 3

I was solving homework1.hs of week 3 of the third cohort and I think there is something wrong with the off-chain code of the solution given the validator. Namely the following, the off-chain part does ...
2 votes
0 answers
23 views

About Fees in the Plutus Playground

I had been reviewing sample codes that can be run in the Plutus Playground, particularly the Vesting.hs code in Cohort #3 Week #3 of PPP. So while trying several cases in the simulation, I sometimes ...
1 vote
0 answers
70 views

How to add 'ToSchema' to Address (in Playground)?

I'm doing homework2 of week05 (cohort3). My contract runs fine in the repl, but when I try it in the playground, I'm running into an issue. It fails on this line: mkSchemaDefinitions ''NFTSchema I ...
5 votes
1 answer
130 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....
0 votes
1 answer
33 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 = [("...
1 vote
3 answers
60 views

Seller pays the fees?

Is it always the case the seller pays the fees? Is this built in the protocol or is it possible to have buyer pay the fees?
1 vote
1 answer
85 views

what is "WalletError (ValidationError (ScriptFailure (EvaluationError [\"PT5\"] \"CekEvaluationFailure\")))" when trying in playground?

I have Homework1 of week 5, and it works in the repl (meaning, the test gives the expected result). However, when I try the script in the playground (and remove the test - I don't think that makes a ...
1 vote
1 answer
44 views

Interpreter Error (error CallStack (from HasCallStack))

Im getting an interpreter error on the Plutus playground commit 3f84ea4fe3924cb7ee614da2b22c64c02c1177e6. I get it whenever I run the purchase endpoint. This is the error Main.hs: This must be ...
0 votes
0 answers
19 views

Import printSchemas error when compiling in Plutus Playground

Occasionally when compiling the given homework starter code from github, I receive this error You need to import printSchemas in order to compile successfully, you can do this with either import ...
2 votes
1 answer
34 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 ...
0 votes
1 answer
52 views

printSchemas error compiling in Plutus Playground

I am getting this error when I try to compile the homework for Week03 of the plutus pioneer program: You need to import `printSchemas` in order to compile successfully, you can do this with either ...
1 vote
1 answer
30 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 ...
4 votes
2 answers
131 views

What documentation works with handling utxos at the Plutus Script?

I am trying to make a Plutus smart contract which takes tokens locked to the contract and then on endpoint call (purchase) sends 1 to the caller and then the rest back to the contract. I cant find a ...
0 votes
0 answers
26 views

Smart contract configuration

Is it possible to write smart contract validator that would check: if UTXO that contains service price information was included so only script can read what is actual price of the service. UTXO with ...
4 votes
1 answer
86 views

How do I test the on-chain validator in Vesting.hs?

In Plutus Pioneer Program, Iteration #3, Lecture #3, Part #4 at 27:48, Lars mentions that he wrote the contract code in a way that invalid transactions will always be caught by the off-chain code. So ...
1 vote
1 answer
61 views

Claiming two tokens by the locking account - owning tokens address

I'm trying to implement some simple two tocken lockup similary to what has been done in Vesting.hs on week03 {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# ...
4 votes
1 answer
33 views

Incorrect Pub Key from Wallet Emulator

I am getting incorrect pubkeys by running mockWalletPaymentPubKey $ knownWallet 1 and mockWalletPaymentPubKey $ knownWallet 2 (from here https://youtu.be/ae7U_yKIQ0Y?t=1390). I checked that I am in ...
0 votes
0 answers
55 views

npm start is failing

Had worked all last week. This week after messing around to get cabal repl working, npm start has been abending. Screen shot attached. Tried as suggested "GC_DONT_GC=1 npm run start" It ...
0 votes
1 answer
30 views

Can anyone see whats wrong with my off-chain code

Im trying to create and send a utxo of tokens to a wallet through collectFromScript and I cant seem to get it to work. Can I get some help? I am trying to create a valid input for the ...
1 vote
1 answer
146 views

Use the week 01 Nix-shell for week 02?

I'd like to know if we should use the week 01 nix-shell? My expectation is that the week 01 nix-shell, was used to start the playground service and the front-end UI. Although, it's clear that there's ...
5 votes
1 answer
118 views

How do you publish on-chain code to mainnet and testnet?

I've understand that the on-chain code is stored in the blockchain through Playground module which is in sync against a local node. But how to "publish" this code to run anywhere? It's an ...
4 votes
1 answer
66 views

Week 2 - Homework - valid validator call true/true after invalid call true/false from same wallet doesn't go through

I managed to get the homework transactions to work as expected (happy), so far so good... I also tried the following scenario which did not work. Q1: Why doesn't it work? Q2: How would it be possible ...
0 votes
2 answers
51 views

Can I control the amount spent by a plutus Script

I know that you can use collectFromScript to take all of the value from a script but is there a way to make it so you only take 1 ADA from a Script that holds 100 ADA? Thank you