Questions tagged [pab]

the Plutus Application Back-end

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

Can I forcefully run phase 2 validation in PAB locally?

Transaction validation happens in two phases: https://docs.cardano.org/plutus/transaction-costs-determinism https://iohk.io/en/blog/posts/2021/09/07/no-surprises-transaction-validation-part-2/ https://...
user avatar
0 votes
1 answer
59 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
41 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 ...
user avatar
  • 45
1 vote
0 answers
27 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 ./...
user avatar
  • 45
0 votes
1 answer
41 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
  • 313
0 votes
2 answers
35 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
42 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
1 vote
0 answers
35 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://...
user avatar
1 vote
1 answer
90 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) => ?...
user avatar
2 votes
1 answer
74 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
2 votes
1 answer
100 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
  • 378
7 votes
1 answer
148 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
  • 733
8 votes
0 answers
195 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 ...
user avatar
  • 1,276
4 votes
3 answers
247 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 ...
user avatar
  • 41
5 votes
1 answer
198 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
  • 148
1 vote
0 answers
107 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 ...
user avatar
  • 1,276
3 votes
0 answers
98 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 ...
user avatar
  • 1,276
6 votes
1 answer
76 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?
user avatar
4 votes
1 answer
138 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. ...
user avatar
3 votes
1 answer
176 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 ...
user avatar
  • 1,276
0 votes
1 answer
94 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
3 votes
1 answer
95 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 ...
user avatar
1 vote
1 answer
58 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 = ...
user avatar
2 votes
1 answer
115 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 ...
user avatar
  • 1,488
1 vote
1 answer
102 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 ...
user avatar
  • 1,488
3 votes
0 answers
51 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 ...
user avatar
0 votes
1 answer
58 views

Plutus-starter - cannot start contract instance

I am following the link below. I've successfully built the docker image (literally had to upgrade to 32 GB of RAM, it used 15 GB at peak RAM usage during cabal build). I have the PAB server running ...
user avatar
2 votes
0 answers
68 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.
user avatar
  • 490
3 votes
0 answers
77 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 ...
user avatar
  • 1,488
3 votes
1 answer
104 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 ...
user avatar
  • 337
2 votes
1 answer
62 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?
user avatar