Questions tagged [pab]

the Plutus Application Back-end

Filter by
Sorted by
Tagged with
9 votes
1 answer
336 views

How can I get a fully built transaction from the PAB

According to the Plutus team, the standard way of generating signed transactions containing smart contracts is to have the off-chain code generate a so called unbalanced transaction that is then, in a ...
Jey's user avatar
  • 1,549
7 votes
1 answer
170 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 ...
Mateus's user avatar
  • 988
6 votes
2 answers
1k 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'...
Oscar Hasan Putra's user avatar
6 votes
1 answer
92 views

Where can I find a good tutorial for PAB?

Up till now, I can't find any tutorial on how to use PAB on the Internet. I really want to try it out to develop Cardano Dapp. Anybody find good ones?
Tam Edward's user avatar
5 votes
1 answer
241 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?
Kaliman's user avatar
  • 160
5 votes
1 answer
182 views

Where is the Datum stored in PAB?

In utxo we store only the hash of the datum, so whenever you work with the Cardano cli to run a transaction - you should provide datum or its hash via tx-out-datum-embed-file, tx-in-datum-file, etc. ...
volodyad's user avatar
4 votes
1 answer
65 views

How to start a instance of a SC with PAB and Nami wallet?

I am runnin a PAB server in mainnet but now I am struggling to run it with a external wallet (Nami) I start the instance of the SC with the following command curl --location --request POST 'http://...
Raul Rosa's user avatar
4 votes
3 answers
290 views

Project One: IOHK light wallet in the making - where to find the source code?

There was a talk at the Cardano summit mentioning the new Cardano light wallet in the works by IOHK and Charles Hoskinson very briefly made a reference to the same project in his latest Dapps ...
Ali's user avatar
  • 41
3 votes
1 answer
212 views

Why do we need the PAB and how does it work?

We can test Plutus smart contracts using runEmulatorTraceIO which emulates a blockchain and serves as an entry point to post transactions on it (or did I get this wrong?). So if I can fully test my ...
Jey's user avatar
  • 1,549
3 votes
1 answer
105 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 ...
Eli Selkin's user avatar
3 votes
1 answer
108 views

How to run Plutus code on Alonzo Purple without the PAB?

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 ...
Attilah's user avatar
  • 431
3 votes
0 answers
162 views

How to export a transaction from Plutus for the wallet

I have a contract that returns an unbalanced transaction: buyTokensTx :: forall w s. TokenPool -> BuyParams -> Contract w s Text (Either MkTxError UnbalancedTx) From what I understand, I need ...
Jey's user avatar
  • 1,549
3 votes
1 answer
116 views

Issue compiling pab-local-cluster on M1 processor

I have been trying to get the new PAB beta release to compile on my M1 Mac and have run into an issue. Build log ( /Users/isaacpadberg/.cabal/logs/ghc-8.10.4/crdn-nd-1.30.0-8154d373.log ): Configuring ...
Isaac Padberg's user avatar
3 votes
2 answers
232 views

How to return funds from a smart contract

If I have assets (can be just ADA for simplicity) locked in a contract, how can I release the funds to the previous owners most efficiently? Some more context regarding the question. I created a pay ...
Matthias Sieber's user avatar
  • 1,557
3 votes
0 answers
56 views

PAB recovering from Errors

In the current version of the Plutus starter repo (commit a85818 which uses plutus-1.0.9), it seems difficult to know where to handle errors. For example, using the Game contract after initialization ...
Eli Selkin's user avatar
3 votes
0 answers
80 views

Specify balance during wallet creation in PAB simulator

Using the PAB Simulator from the plutus-starter (version 1.0.9, commit: a85818c27926f34d627225636f463cc6698706fc), I'm getting some odd behavior in terms of wallet creation. I've created a simple ...
Matthias Sieber's user avatar
  • 1,557
2 votes
1 answer
108 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 ...
marcel_g's user avatar
  • 239
2 votes
1 answer
75 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)
Aoaddeola's user avatar
  • 815
2 votes
2 answers
111 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
2 votes
1 answer
64 views

Hypothetically, could someone other than the Cardano Foundation or IO publish an application back end first?

The Plutus Application Backend remains to be published. Could someone else put one up first? What would happen?
Wavey Davey's user avatar
2 votes
0 answers
78 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 ...
RustyCamel's user avatar
2 votes
2 answers
159 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 ...
lley154's user avatar
  • 297
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 ...
Stanislav Zhdanovich's user avatar
2 votes
1 answer
168 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 ...
Igodlab's user avatar
  • 488
2 votes
0 answers
72 views

Prefund wallets for PAB

How does one prefund wallets for PAB (Plutus Application Backend)? I do not want to introduce minting code just for this purpose.
Kwaggy's user avatar
  • 500
1 vote
2 answers
230 views

What is the Cardano's equivalent to the Ethereum's EVM?

What is Cardano's smart contract engine called? Smart contract language: Solidity (Ethereum) => Plutus (Cardano) Simple enough, I get this. Smart contract "engine": EVM (Ethereum) => ?...
TypicalHog's user avatar
1 vote
1 answer
121 views

POSIXTime as payload

I have a parameterized contract that includes a POSIXTime as a field called startTime served via PAB. What is the appropriate stringified HTTP payload to indicate a date with time such as the 25th of ...
Matthias Sieber's user avatar
  • 1,557
1 vote
3 answers
290 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
1 vote
1 answer
57 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 ...
Falcon Stakepool's user avatar
1 vote
1 answer
99 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 ...
brightman11's user avatar
1 vote
3 answers
72 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 ...
Godfrey's user avatar
  • 21
1 vote
1 answer
62 views

How to get the final balances using the PAB+ the simulator?

I'm using the GuessGame: https://github.com/input-output-hk/plutus/blob/a36af17fd38db591865679916c819079ad51fda2/plutus-playground-server/usecases/Game.hs under the simulator, with this code main = ...
agocorona's user avatar
1 vote
0 answers
17 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 ...
user7245's user avatar
1 vote
0 answers
23 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 ...
KugisMugis's user avatar
1 vote
1 answer
123 views

Why do we need the ```plutus-chain-index``` to run and why does it take so long to sync

I'm trying to set up a PAB in order to test my contracts Currently I have: fully synced a cardano-node running on testnet fully synced cardano-wallet tracking one wallet a plutus-chain-index syncing ...
Michele Nuzzi's user avatar
1 vote
0 answers
50 views

setting up the PAB - could not start the plutus-chain-index

I'm trying to follow the lesson 6 of iteration 3 of the plutus-pioneer-program when trying to start che chain index trough the command (fromn the plutus-apps repository) plutus-chain-index --config ./...
Michele Nuzzi's user avatar
1 vote
1 answer
59 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 .\/ ...
Walker Leite's user avatar
1 vote
0 answers
99 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....
Jochen WILMS's user avatar
1 vote
0 answers
62 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
1 vote
0 answers
147 views

User interaction with smart contracts

I want my users to interact with my smart contracts. All transactions come from these users. There are no transactions - except for setting up - that come from my wallets. As entry point for this ...
Jey's user avatar
  • 1,549
1 vote
0 answers
62 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 ...
Aoaddeola's user avatar
  • 815
0 votes
2 answers
54 views

Upload Smartcontract to Blockchain

I've seen a tutorial where a smart-contract was uploaded to Cardano Blockchain using cardano-cli, so I would like to do the same thing using plutus PAB. How would I do that? The tutorial on lecture 6 ...
professor moriarty's user avatar
0 votes
1 answer
172 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.
ViktorYasterbov's user avatar
0 votes
2 answers
49 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....
Mitchell Turner's user avatar