Questions tagged [plutus-pab]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Using plutus-apps with cardano-node 1.35.x

I am new to Plutus development and I am working on some contracts. Some months ago, I setup my environment by cloning plutus-apps and checking out the main branch. I then created my project using one ...
user avatar
  • 307
0 votes
0 answers
16 views

Interact with the code in blockchain

Correct me if there is any mistake: when the validator code is deployed to the blockchain how the offchain code will interact with it? I don't want to use CLI, I want to use PAB. I know how to deploy ...
user avatar
1 vote
0 answers
11 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 ...
user avatar
1 vote
0 answers
16 views

When is Contract instance actually finished running?

I'm trying to write tests for my smart contracts. I want to test if my contract has finished running by using this predicate: -- | A 'TracePredicate' checking that the wallet's contract instance ...
user avatar
1 vote
1 answer
36 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 ...
user avatar
1 vote
1 answer
81 views

Using Endpoints in a PAB Schema

I am trying to find a way to integrate endpoints from a native token staking contract and implement them into the PAB. I am assuming I will heavily be using the getSchema instance. Like so: instance ...
user avatar
0 votes
1 answer
16 views

start-cluster - Command failed: genesis create - */genesis.alonzo.spec.json: openBinaryFile: does not exist (No such file or directory)

After cloning latest cardano-node and running nix-shell successfully I get an error running start-cluster and different error if I run with sudo: Do I need to download the latest genesis jason file? ...
user avatar
  • 100
0 votes
1 answer
13 views

Can someone help to understand how to use handleChainIndexClient?

I'm not guru with Eff system under Haskell. What i got that method could contains the constraints for monad that should be used with. module ChainIndexHelper where import Plutus.ChainIndex.Client ...
user avatar
0 votes
1 answer
100 views

How to use Plutus chain index with real testnet

I would like to use Plutus API for getting script datum (datumFromHash) but how to setup and run Plutus chain index on testnet or main net? I saw there are methods in Plutus.ChainIndex.Types.
user avatar
0 votes
0 answers
9 views

How to specify DatumType for minting policy with Contraint.mkTx

I've got simple minting policy. Currently I want to build the Cardano Transaction and serialize it. I have found that plutus contains methods for that like (toCardanoTxBody etc ) Based on this: ...
user avatar
0 votes
1 answer
56 views

how to query the chain index tx endpoint?

The following curl is constructed via swagger that says it just needs the string, but this fails. What am I doing wrong? $curl -X 'POST' \ > 'http://localhost:9083/tx' \ > -H 'accept: ...
user avatar
  • 353
0 votes
2 answers
42 views

Why can't the PAB webserver find a socket in PAB-Nami demo?

I'm trying to run the PAB-Nami simple demo in the Plutus Apps repo. When I run the PAB, either using cabal or with the nix-shell script, I'm getting the error: plutus-pab-nami-demo: Network.Socket....
user avatar
0 votes
1 answer
45 views

Getting TypeError: EC is not a constructor running pab-nami

When running npm, start inside a nix-shell of plutus-apps/plutus-pab-executables/demo/pab-nami/client
user avatar
2 votes
0 answers
72 views

Issues running Chain-index on WSL2 - fully syncing but not running the webserver

I've run into an issue with the chain-index while trying to run a PAB testnet environment. The index will start up, sync to 100%, update to new blocks, but the webserver will never start. In fact, the ...
user avatar
1 vote
1 answer
45 views

Why is String being interpreted as a type?

According type applications, this extension allows to give explicit type arguments to a polymorphic function. type VestingSchema = Endpoint "give" GiveParams .\/ ...
user avatar
2 votes
2 answers
135 views

bootstrap chain-index.db

The process to sync the plutus-pab chain-index for the testnet takes over 3+ days now and will take longer as time goes on. Is it possible to bootstrap the chain-index sync process to reduce the ...
user avatar
  • 211
0 votes
0 answers
39 views

Cannot send a transaction using Plutus

I get the following error when I try to send a transaction that locks some ADA in a UTXO: [pab:Warning:41] [2022-01-28 11:58:42.88 UTC] WalletClientError "ConnectionError (HttpExceptionRequest ...
user avatar
  • 391
0 votes
1 answer
50 views

cardano-wallet for pab-local-cluster

Does anyone have an example of how to execute the cardano-wallet CLI for the pab-local-cluster in plutus-apps (tag: v2022-01-17)? I can get access to to the local wallet server APIs, but I need the ...
user avatar
  • 211
0 votes
1 answer
23 views

Can GTK libraries used with Plutus?

Interested in GUI interfaces, is their restriction's in using GTK Haskell libraries with Plutus. Am only starting on Journey so wanted general feedback that might help guide me down right path.
user avatar
2 votes
0 answers
22 views

Does plutus-pab support parallel requests?

Does plutus-pab support parallel requests to the same smart contract instance? Does plutus-pab support parallel requests to different smart contract instances? By parallel requests I mean calling ...
user avatar
2 votes
1 answer
90 views

How does a Cardano DApp client authorize a payment?

Am I correct in thinking that this requires a DApp connector on the same device as the User's wallet? Or could you have an app on the user's device that doesn't connect to their wallet, but somehow ...
user avatar
  • 195
1 vote
0 answers
73 views

How to use the plutus pab statemachine with RemoteWalletConfig for Nami and Yoroi

Looking at the demo contract provided in the plutus-apps folder, you can follow the example of the PayToWallet endpoint. In this endpoint, yieldUnbalancedTx provides the instance with an unbalanced TX....
user avatar
1 vote
0 answers
48 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 ...
user avatar
  • 177
0 votes
1 answer
65 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-...
user avatar
  • 188
0 votes
3 answers
242 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 ...
user avatar
  • 188
0 votes
0 answers
17 views

Playing the guessing game Steps 3 & 4

Steps 1 & 2 look good. Step 3 export INSTANCE_ID=... curl -s http://localhost:9080/api/contract/instance/$INSTANCE_ID/status | jq parse error: Invalid numeric literal at line 1, column 8 Step 4 I ...
user avatar
1 vote
3 answers
67 views

nix-build -A plutus-pab? Where do you run this?

I'm following this environment setup guide https://docs.plutus-community.com/docs/setup/WindowsWSL.html nix-build -A plutus-pab error: attribute 'plutus-pab' in selection path 'plutus-pab' not found I ...
user avatar
  • 21
2 votes
2 answers
95 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 ...
user avatar
  • 188
2 votes
1 answer
122 views

Blockfrost and Plutus Application Backend [closed]

I am wondering if anyone has tried both backend services to develope smart contracts? I am aware that IOHK's PAB is compatible only with Plutus whereas Blockfrost's API allows to use other programming ...
user avatar
  • 488
7 votes
1 answer
155 views

Good tutorials / resources for PAB (testnet)

Does anyone have good resources on the PAB connecting to the testnet? I know Lars Brünjes explained it in the pioneers program, but, at that time, we still had to rely on the emulator. I also know we ...
user avatar
  • 773
0 votes
0 answers
68 views

Problem running Plutus Playground Client on MacOS

I am encountering a problem when trying to run the Plutus Playground through Nix on MacOS. I tried using the last available tag v2021-12-20, but I am getting the following error when I try to run the ...
user avatar
5 votes
1 answer
219 views

PAB connection to public testnet or mainnet (Example/Tutorial)

Does anyone know and want to share any information on how to connect PAB to public testnet (not simulator) or mainnet? Are there any examples/tutorials for it?
user avatar
  • 150
0 votes
1 answer
98 views

Does anyone else have trouble syncing to the PAB end to end testnet?

Plutus PAB Testnode git checkout v2021-11-05 Following the instructions on the readme file leads me to a testnet node that is stuck due to a corrupt block error. [relay2:cardano.node.ChainDB:Error:34] ...
user avatar
0 votes
0 answers
27 views

ContractInstanceId -> Address?

I have a multiple lock-guess game with many Lockers and many Guess'ers. I initiate each lockers and guessers with: lockcid <- Simulator.activateContract (Wallet 1) Lock lockcid2 <- Simulator....
user avatar
2 votes
1 answer
70 views

How to get list of wallets generated by PAB

I'd like to know what endpoint to call to get the list of wallets generated by PAB during initialization (after calling cabal run myapp and seen after ending PAB - by pressing enter)
user avatar
  • 686
3 votes
1 answer
87 views

Endpoint contract response from PAB

Is there a way to return values that are not the unit in JSON form from an endpoint? Currently, any successful endpoint call over HTTP returns "[]". The only way we have to debug content is ...
user avatar
6 votes
2 answers
856 views

How to run smart contracts in the Cardano Blockchain?

I know that since Alonzo was launched smart contracts can be published in the blockchain now, but I have no idea how to do it. I have read some articles about the Plutus Application Backend though, it'...
user avatar
0 votes
1 answer
47 views

Hooks empty after calling endpoint

I'm finding it difficult figuring out the cause of this hiccup. When I create an instance of a contract, the hooks are populated, but after calling an endpoint, the hooks list becomes empty. Status of ...
user avatar
  • 686
1 vote
0 answers
60 views

PAB webserver not working

Trying to connect to the PAB webserver on port 8080 gives: Error: connect ECONNREFUSED 127.0.0.1:8080 Output from running cabal exec MyPAB: [INFO] Slot 0: TxnValidate ...
user avatar
  • 686