All Questions

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

When there are multiple liquidity pools for the same pair on SundaeSwap, which one is used for my trade?

Let's say we have two liquidity pools for token X and ADA (X/ADA) pool 1 has 10 X and 10 ADA locked -> price is 1 pool 2 has 20 X and 10 ADA locked -> price is 2 What happens if I buy X/ADA ...
0
votes
0answers
11 views

What is a round trip problem? and why using Unstable functions could cause it? (unstableMakeIsData)

Lecture 2 of plutus-pioneer-program, introduces unstableMakeIsData In the lecture it is advised to use the Stable version in production. Lars explains that the Unstable version does not make any ...
0
votes
1answer
23 views

Question about funds in the "burned" example

On the "burned" example*, do those burnt tokens go back to being available from the reserve and to be rewarded back to circulation or are they locked and lost forever ? If so, then is it ...
1
vote
1answer
10 views

What is the fastest way of getting PolicyId from an Asset Fingerprint?

Is it possible to retrieve the policyId from an 'asset fingerprint' without any api request to an external source?
1
vote
2answers
20 views

How can I determine how many staking nodes are run by an operator?

When selecting a Cardano Stake Pool for delegation, I have been relying on taking a look at their website and making a judgement call about whether they are are a sole operator with a single node. Is ...
2
votes
0answers
23 views

What mechanisms are in place encourage decentralization and to deter centralization of stake pools?

One of the core goals of any L1 cryptocurrency is to ensure decentralization of its consensus mechanism (proof-of-stake, proof-of-work, etc.). For Cardano that is the number of independent Stake Pool ...
0
votes
0answers
7 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 ...
1
vote
0answers
9 views

cabal repl error

When I run cabal repl in the week01 folder I get an error message that states the following */plutus-pioneer-program/code/week01/dist-newstyle: createDirectory: permission denied (Permission ...
0
votes
1answer
15 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.
0
votes
1answer
16 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 ...
2
votes
1answer
35 views

Auction example: How does Bob know the redeemer of the UTXO sitting at the script address?

When Bob places a bid... He places a transaction/bid that takes in his UTXO (for which he has the private key as he is the owner) and the UTXO sitting at the script address., It outputs a new UTXO ...
0
votes
1answer
33 views

Transactions without input addresses

I'm building a minting engine for a project and I found something strange today. One of the incoming transactions, which I pull from a Cardano Wallet (testnet) service has an input without an address. ...
0
votes
1answer
18 views

How can I mint/sell bundles of NFTs as a pack?

There are many use cases for bundling NFTS. Example: If I am creating a Trading card game and have packs of multiple NFTs (6 cards). How do I make users purchase my packs of of 6 cards. I thought pre-...
6
votes
1answer
95 views

on multiple eUTxO and the validation proces

I have an in-depth question that needs good knowledge of the ledger rules. I was thinking about how to program efficiently and design apps such that they are parallelizable, a good practice for ...
-2
votes
0answers
17 views

Create Packs of 8 random NFT?

I want to send my users pack of 8 Random NFTs from my collection when they send X Ada to my wallet or to the Script address. Can You guide me what will be the best workflow to achieve this task?
5
votes
3answers
993 views

What does "off-chain code lives in the wallet" mean?

That terminology was used in PPP3 lectures, but what does it mean? The spending transaction should follow rules of the smart contract as was answered here Can blockchain viewers read the source code ...
1
vote
1answer
33 views

How are datums retrieved from UTXOs by on-chain code?

How is Plutus on-chain code able to retrieve and decode datums from UTXOs of ScriptContext? These datums are hardly found in cardano-db-sync or explorers anywhere?
1
vote
2answers
36 views

What documentation works with handling utxos at the Putus Script

I am trying to make a Plutus smart contract which locks tokens to the contract and then on endpoint call sends 1 to the caller and then the rest back to the contract. I cant find a distribution model ...
0
votes
1answer
20 views

How to handle tx dropped due to congested network?

Recently Cardano has come under heavy load. The consequences have been that some of our transactions which appear to have submitted successfully to the blockchain do not actually end up on the ...
1
vote
2answers
47 views

How are values in UTXO's stored

Are values in UTXO's stored in a set manner for example if 50 Tokens with metadata and 50 tokens without metadata had the same Token Name and currency symbol and were to be handed out from a script 1 ...
1
vote
1answer
17 views

How does one count time within a smart contract

Imagine there is a bidding smart contract and i have a maximum time limit set for it. How would i count time within this smart contract in cardano ? Can i get the slotIds and use that as proxy count ...
4
votes
1answer
45 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
1answer
15 views

How to import root private key or account private key to cardano-wallet

I am playing around with cardano-wallet key derivation, and I have a mnemonic from which I've derived the root key, as well as account 0 public/private keys. Then, I imported a wallet using cardano-...
0
votes
2answers
33 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
1
vote
1answer
84 views

Received the transaction id but the transaction never happened

I used to work with Blockfrost API to submit my transactions. A few days ago, I ran into this problem in which my transactions were submitted successfully (The API returned me the transaction id ...
4
votes
2answers
569 views

Can blockchain viewers read the source code of a smart contract if they know its address?

I'm curious, is it possible to find the source code of the validation script of a smart contract (as well as other parts) that is already on the blockchain? Or this code automatically picking up into ...
1
vote
3answers
33 views

send token / asset by cardano-CLI

i am looking so long, but till now didnt find a complete answer about : how to send a token / asset from cardano-cli. can you please help me to go in details about build the transaction from the CLI ? ...
0
votes
1answer
27 views

Why are community-wallets able to outperform the official solutions during the current "congestion"?

Can someone please explain the difference that led to some community-wallets beeing able to operate so much better during this congested period? I have hours delay when using yoroi, but only 1-2 ...
1
vote
1answer
18 views

How can I derive the Staking address from a Payment address?

If someone provides me with a payment address, how can I derive the staking address from the payment address? This can be useful for example when we want to sent rewards to the people in return for ...
1
vote
2answers
33 views

[Congestion ]Transaction submitted but never get processed

I have an issue on which I have been stuck for 4 days since the release of Sundaeswap and the congestion of the network. I have my own node on the mainnet. I have the same on the testnet and ...
0
votes
0answers
24 views

How can I configure Ale so it finds Plutus libraries?

I'm using nvim with Ale, no particular config other than: Plug 'w0rp/ale' let g:ale_sign_error = '●' let g:ale_sign_warning = '●' It looks like works out of the box for Haskell, but cannot find ...
1
vote
0answers
12 views

Can all redeemers in a transaction be retrieved at once?

In the case of multiple datums and redeemers provided in a transaction, I see that TxInfo contains all datum in txInfoData :: [(DatumHash, Datum)] but not all redeemers are included. data TxInfo ...
0
votes
0answers
25 views

week 02 - Pioneer cohort 3: Failed to build lzma-0.0.0.3

I am on week 02 of the 3rd Pioneer Cohort. I am working on a Mac Mojave; when I get to running cabal repl I get this error: Failed to build lzma-0.0.0.3. The failure occurred during the configure step....
0
votes
1answer
18 views

What is the purpose of placing () at the end of the function declaration?

In week02 Iteration 3 there is a function that has (). What is the purpose of that? Is it so that the function can't be used maliciously? mkValidator :: Data -> Data -> Data -> ()
0
votes
1answer
14 views

TransactionBuilder and add_from_inputs

Looking through the cardano-serialization-lib I see a TransactionBuilderConfig and a TransactionBuilder constructor that looks like it takes the Config and exposes add_from_inputs that maybe does the ...
1
vote
1answer
65 views

Where does the `mustPayToTheScript` function gets the script address from?

On the plutus pioneer program, lesson 02, Lars shows the parameterized contracts and on the off-chain code he makes use of the mustPayToTheScript function to create the transaction. Different from ...
0
votes
1answer
35 views

new type and JSON

Working on Week 2 Homework 1, I tried to define a new type DuBool. The following is the relevant portion of the code, with the more traditional version commented out immediately above each line that ...
0
votes
1answer
15 views

Error starting /plutus-apps client and connecting to localhost macOS

Incurred an error starting /plutus-apps client and connecting to localhost: user error, Interpreter Error, CompilationErrors Short Error plutus-playground-server: user error (Error evaluating ...
0
votes
0answers
9 views

Child compilation failed [duplicate]

Hello Cardano community. This question has been asked in the community and I would like to resurface it as I am having the same problem. Ref: plutus-playground-client npm start error (MacOs Intel i7) ...
1
vote
2answers
42 views

What's the equivalent to ownPubKey in the newer version of Plutus?

In lesson 5 that they use a built in function called ownPubKey to access the wallet pubKey in the transaction on the plutus playground. This function seems to be non-existent in the newer versions of ...
1
vote
2answers
55 views

Are negative values valid quantities in native assets?

In Cardano's Alonzo CDDL (Concise Data Definition Language) specification, it seems that the value of an asset could be negative. Is it correct? If the above assumption is correct, I am wondering how ...
1
vote
1answer
40 views

How does Constraints.mustHashDatum work?

I'm trying to understand how Constraints.mustHashDatum works but I'm not able to figure out the purpose of this Constraint. Any help would be great.
3
votes
5answers
90 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
0answers
22 views

Epoch 316 numbers for the 500 ranked daedalus pools: [closed]

From the 500 ranked pools in Daedalus, 338 are multipools and 162 are single stakepools. From the first 10 ranked pools are 9 multipools. From the first 100 ranked pools, 83 are multipools. And 17 are ...
3
votes
2answers
410 views

If metadata can be changed, how can the uniqueness of an NFT can be guaranteed?

Let's say, there's manufacturer that produces luxury watches, and he uses Cardano NFTs to track their authenticity. He embeds unique serial number of a watch into metadata of NFT. One watch - one NFT,...
1
vote
0answers
17 views

Errors with compiling when trying to install offchain-metadata-tools

Hello I am trying to install the offchain-metadata-tools library from IOHK and when using nix-build -A project I am getting this error below saying failed in linker phase when trying to connect to the ...
1
vote
2answers
31 views

build okay locally, but fails in playground

I am trying to compile the Homework01.hs The build locally on Linux passes when I do :l src/Week02/Homework1.hs Prelude PlutusTx Ledger.Scripts> :l src/Week02/Homework1.hs [1 of 1] Compiling Week02....
1
vote
2answers
49 views

Timing of finality of a transaction in Mainnet

Hello i am facing some troubles when moving from test-net to main-net, my transactions seems to have to wait a long time for being reflected in the explorer, also i can not do any more transactions ...
1
vote
1answer
35 views

Figure out transaction id after submitting using cardano cli

It's possible to submit transactions using cardano cli. Here is an example (assumes you have gone through the steps to build the tx): cardano-cli transaction submit --tx-file matx.signed --mainnet I ...
0
votes
1answer
28 views

macOS Monterey i7, what is the best `nix.conf` file to use?

Does anyone have the recommended nix.conf file to use for macOS Monterey i7? Following a few different tutorials, my current .conf file looks like: build-users-group = nixbld substituters = ...

15 30 50 per page
1
2 3 4 5
29