Questions tagged [utxo]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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?
3
votes
1answer
79 views

Is eUTxO a generalisation of UTxO

To me it sounds like UTxO is a very specific implementation of the more general eUTxO protocol. So could eUTxO be (in theory) be used to implement UTxO? Not that one would - but just to understand the ...
0
votes
1answer
36 views

How to get information about UTxOs which created locking transaction on the on-chain?

I would like to create a smartcontract which makes sure that only the same person who made specific locking transaction can unlock that same specific transaction or to put it into simpler terms if Bob ...
0
votes
2answers
53 views

Why is ADA locked up with native assets and can it be detached from the native assets?

In Yoroi I can see that there is some ADA locked up with my native assets: Can I spend this ADA without the native asset? If I would not care about the native asset, could I create a transaction that ...
3
votes
1answer
90 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. ...
0
votes
1answer
56 views

Feasibility of having multiple persistent UTXOs at a script address

I'm attempting to construct a contract which maintains the state associated with a given NFT. I would like this to be done on-chain as there are ways for the user to attempt to save invalid (...
2
votes
1answer
88 views

How to select UTXOs needed for covering a given ada amount using the Cardano Serialization Lib?

Is there any prebuild method in Cardano Serialization Lib that allows to select some UTXOs that cover the balance needed for a transaction? Or should i make a script that querys all the utxo in that ...
6
votes
1answer
312 views

Smart Contract NFT minting with Rarities

I'm trying to work out how an NFT collection might be sold on Cardano in the future, specifically by making use of smart contracts. Let's say that I am creating a 10k pfp collection or something of ...
1
vote
2answers
50 views

Why is there no mechanism available to restrict creation of UTXOs at a script address?

It has been told that anyone can create UTXOs at any script address without restrictions since the validator does not run for transaction that do not consume UTXOs. The question is, why so? I think it ...
2
votes
2answers
73 views

Error: Reference to a name which is not a local, a builtin, or an external INLINABLE function

I am writing a minting policy that takes half the bytes of one of the eUTXOs being used during mint and encoded them as a base89 readable string then checks that the Asset being minted has as a ...
2
votes
1answer
78 views

Obscure error while trying to unlock funds from a script from the CLI

I have been trying to interact with a simple script I created using the CLI, and I am getting an error that I don't understand: This is the error: The Plutus script evaluation failed: An error has ...
0
votes
1answer
135 views

How to specify the new output datum value (not hash) using the CLI

I have written a script that basically keeps a counter and every time it is spent increases said counter, the way it guarantees that the counter was increased is by checking the current datum of the ...
0
votes
1answer
112 views

How to split transaction into many different UTXOs?

Let's image I want to create a Plutus script, which takes Value as a parameter (ADA or any other coin with specific amount), and locks this value at script's output. How can I split this value into ...
8
votes
4answers
215 views

Is there any limit to the number of UTXO's sitting at a script address?

Just want to foresee if we'll run into any issues sending/consuming thousands, or tens of thousands of UTXO's at a script address.
4
votes
1answer
119 views

What is the relation of "ptr" with UTXO?

I am working on an app, I am using Nami wallet and cardano-serialization-lib. When I query UTxO and decode it using cardano-serialization-lib, I get an object with only attribute is something called &...
2
votes
1answer
132 views

How to list all wallet UTxOs with cardano-cli?

How to list all wallet's UTxOs with cardano-cli utility? Not only address UTxOs via: cardano-cli query utxo --address <ADDRESS> --mainnet
3
votes
2answers
51 views

Is it normal to have an empty body for the input object when viewing a transaction with cardano-wallet?

I was scanning the incoming transactions of a cardano-wallet and a transaction's input body did not contain an address. The other transactions had an address. Is this a normal occurence? If so, how do ...
3
votes
1answer
68 views

Query all UTXO's from a single Yoroi wallet via CLI?

I wanted to list all assets from my Yoroi wallet via Cardano CLI when I noticed separate privacy addresses had their own UTXO's. Is there a way to resolve all UTXO's from a single wallet?
2
votes
1answer
209 views

How to send a transaction for Cardano native assets via CLI?

For example to list UTXO is something like this cardano-cli query utxo —mainnet —address addrX which returns as an example TxHash TxIx ...
4
votes
1answer
142 views

Confusion with cardano db sync schema and UTXO model

I am confused with the tx_in and tx_out schema on Cardano dbsync and the transaction process as a whole. For example: Alice has 10000 ADA distributed as 3000, 5000 and 2000 ADA in three different ...
9
votes
2answers
313 views

What does it mean that a UTxO sits at script address?

What does it mean that a "UTxO sits at a script address". What is a script address?
3
votes
1answer
89 views

How is access control managed with smart contracts in (e)UTXO?

I've seen Charles mention this a little bit in some of his videos. He sort of laughs it off like the answer is obvious, but I'm not deep into the technicals. I also had an Ethereum developer bring it ...
1
vote
1answer
69 views

How can I get rewards into payment address?

I have stake pool paymentwithstake.addr which is a composition of payment.addr with stake.addr. I can query stake.addr for the balance using the following command: cardano-cli query stake-address-info ...
9
votes
2answers
357 views

Does Cardano suffer from MEV?

There's a lot of chatter lately in the cryptosphere about Miner Extractable Value (MEV) in Ethereum. As I understand it, MEV is a property of the Ethereum blockchain where miners can (re)order/...
4
votes
1answer
64 views

How are transactions prioritized from memory?

I've been thinking on restrictions around concurrency of smart contracts given the deterministic nature of the EUTXO model, and I've had trouble finding an answer to how transactions are prioritized ...
5
votes
3answers
700 views

Is it possible to send a native token to another wallet while sending the minimum amount of ADA to my own wallet?

Every transaction needs to include at least 1 ADA (See: Is there a minimum amount of ADA I can send in a transaction?). I want to send a native token to someone else, but I don't want to send them the ...
5
votes
1answer
151 views

Smart contract datum encryption

Is there any way to make datum data only visible to a smart contract that owns the UTXO? For example, lets say I wanted to make a guessing game. In this game, person A selects a number and creates an ...
5
votes
1answer
65 views

How are staking rewards stored?

In another question Andrew Westberg mentions that staking rewards are not stored as UTxOs to save space on the blockchain. My question is: how exactly are those rewards associated with one's stake ...
16
votes
5answers
880 views

What exactly is a Redeemer?

So I am currently on lecture 1 on the Plutus Pioneer Program. In the lecture they said the redeemer is the input information that the script uses to decide if a specific UTxO can be spent. I watched a ...
7
votes
3answers
119 views

When a UTxO becomes available for consumption?

In the Gift.hs example from the second lecture in Plutus Pioneers Program, when I give ada, a UTxO is produced. When I want to grab that ada in the same block, it fails (There is no input or output ...
14
votes
2answers
126 views

Do old UTXO's ever get pruned from the blockchain?

From what I've read, downloading a full Daedalus node is currently around 6-10GB. Do old UTXO's ever get pruned from the blockchain? If not, what's to stop the size of the blockchain from growing ...