Questions tagged [pab]
the Plutus Application Back-end
36
questions
9
votes
2
answers
322
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 ...
7
votes
1
answer
168
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 ...
6
votes
1
answer
88
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?
5
votes
1
answer
238
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?
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.
...
4
votes
1
answer
64
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://...
4
votes
3
answers
280
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 ...
3
votes
1
answer
207
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 ...
3
votes
1
answer
107
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 ...
3
votes
0
answers
138
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 ...
3
votes
1
answer
115
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 ...
3
votes
2
answers
189
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 ...
3
votes
0
answers
55
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 ...
3
votes
0
answers
78
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 ...
2
votes
1
answer
103
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 ...
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?
2
votes
1
answer
159
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 ...
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.
1
vote
2
answers
188
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) => ?...
1
vote
1
answer
116
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 ...
1
vote
1
answer
96
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 ...
1
vote
1
answer
61
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 = ...
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 ...
1
vote
1
answer
109
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 ...
1
vote
0
answers
45
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 ./...
1
vote
0
answers
142
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 ...
0
votes
2
answers
42
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 ...
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....
0
votes
1
answer
50
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
0
votes
1
answer
72
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 ...
0
votes
0
answers
8
views
How to Resolve this Chain Index Error
I am facing this error when i run the Chain Index.
[chain-index:Error:26] [2023-01-17 20:33:11.77 UTC] {"contents":{"contents":{"contents":{"tag":"Tip"...
0
votes
1
answer
64
views
Is IOG’s PAB going to be deprecated?
I wonder if we should consider the official PAB deprecated.
0
votes
0
answers
12
views
How ContractInstanceId works? What's the porpuse of cid files?
When working with PAB some files with cid extensions are generated when you try to use an endpoint. Does this file stores your information after you've done some operation in the smart-contract?
0
votes
0
answers
29
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://...
0
votes
1
answer
71
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: ...
0
votes
1
answer
104
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] ...