Questions tagged [utxo]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
12 views

How can I see if an UTxO holds an NFT in the postgres DB?

Is it possible to find out if an UTxO on the tx_out postgres table holds an NFT? OR in generell which kind of asset this UTxO holds? Thank you!
user avatar
-1 votes
0 answers
23 views

Problem with db-sync

I have a quick question, I had a situation occur today when experimenting with options for getting all utxos from an address. Using the CLI directly it returned 20 utxos, but when I queried using db-...
user avatar
0 votes
0 answers
17 views

Anyone interested in reviewing / testing new Cardano data intelligence platform?

I recently completed & deployed the BETA release for a data intelligence application built specifically for the Cardano Blockchain. Would anyone be interested in helping review / test? If yes, ...
user avatar
0 votes
0 answers
26 views

How can I build a transaction to register a stake pool using Cardano Serialization Lib?

I have built the following transaction to register a stake pool: { "txHash": "0f874a3cb0ba57ed68a79601781eb9e29666f7f2f0e72ab4ed1f3cc9fcea7dee", "ttl": 60310548, &...
user avatar
0 votes
0 answers
9 views

How to convert UTxOs from Graphql to Cardano Serialization lib format?

I want to use this function as coin selection for my transactions: txBuilder.add_inputs_from(unspentOutputs, 3); The problem I have is I'm using cardano-graphql to retrieve UTxOs: { "data"...
user avatar
2 votes
1 answer
72 views

Get transaction unspent output value

I have payment signing key and staking signing key of my wallet. How can I get transaction unspent outputs with cardano-cli/cardano-serialization-lib/pycardano. I expect to get string like this ...
user avatar
  • 21
1 vote
0 answers
37 views

What's the correct way of deserializing a UTxO?

I'm getting the following error when trying to deserialize a UTxO obtained using cardano-graphql: Deserialization failed in TransactionUnspentOutput because: No variant matched This is the code that ...
user avatar
0 votes
1 answer
37 views

How can I build a transaction to send different assets (not just ada) using Cardano Serialization Lib?

I have followed this example on how to create a transaction to send ada and I had no issues so far. What I would like to do next is to add different assets to this same transaction. Is there an ...
user avatar
0 votes
1 answer
16 views

Do I need to validate for minADAUTxO output in Smart Contract validator?

I have a spending validator that currently expects an output with an NFT to be recreated at its own address. Is it necessary to also include a check whether the output's value has a greater equal ADA ...
user avatar
0 votes
2 answers
48 views

utxo fail problem(utxo fee too small

we faced the utxo failure issue the error message is like message: '"transaction submit error ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (...
user avatar
1 vote
3 answers
97 views

Get Value of Datum from a UTXO

I currently have a utxo that i am getting like this. initalMatchPool <- Map.filter (findInitalAmount fundAddress) <$> utxosAt scrAddress How do i get the value of the datum attached to this ...
user avatar
0 votes
1 answer
33 views

A Script With Multiple Different Datum Types

I have 4 different Datum Data Types in my script because for 4 different use cases in my script. data FundCreationDatum = FundCreationDatum { vFundOwner :: PaymentPubKeyHash, vPrizeAmount :: ...
user avatar
2 votes
0 answers
25 views

Is there any way to determine the number of actual "transactions" in a transaction?

You may have see some of the online discussions on Twitter about Cardano TPS count. It lead me down the rabbit hole of trying to see if I could calculate TPS more accurately. I have listed my findings ...
user avatar
  • 223
1 vote
1 answer
26 views

What are the current options for spending a UTxO at a script address?

If the following script is protecting a UTxO { "type": "all", "scripts": [ { "type": "after", "slot":...
user avatar
0 votes
1 answer
27 views

Filter for utxos that was send from a specific public key address

In the pionner program they have this logic where they filter through utxos and get a specific set of utxos. {...} utxos <- Map.filter (isSuitable pkh) <$> utxosAt scrAddress {...} where ...
user avatar
0 votes
1 answer
37 views

How to see UTXOs at a script

I am creating a function that takes in UTXOs at a script as a parameter. I know there is a function Plutus.Contract.utxoAt but how do i see what that will return ? I am still developing out my script ...
user avatar
1 vote
0 answers
37 views

Get UTXO or tnx hash from nami Collateral

I am using the function cardano.getCollateral() in the nami wallet library which gives me the utxo of a collateral, lets say it is: "...
user avatar
1 vote
2 answers
47 views

How to allow non deterministic spent output

I would like a validator (or a minting policy) to succeed always but only to spend the output if some conditions are met; an example use case of such behaviour is to allow burning token (kind of a &...
user avatar
  • 392
0 votes
1 answer
75 views

minted NFT is shown as solid color of picture in Nami wallet

I have some questions about NFT mint. I minted NFT using Nami Wallet API, but sometimes error occurred. I need to mint several NFTs at once. So I submit minting transactions in for loop. But ...
user avatar
1 vote
2 answers
54 views

relationship between seed phrase, wallet address, public key, UTxO, verification key, and signing key

Everything I read about cryptography talks about a "public key" and a "private key". However, the Cardano CLI reality appears more complex. As I understand it, the 24 word seed ...
user avatar
  • 177
3 votes
2 answers
77 views

how can I increase the address gap limit in daedalus?

Problem: Payments to a wallet don't show in a daedalus wallet, because it was sent to an address that exceeds the gap. How can I increase the gap so I can see (and consume) that utxo?
user avatar
  • 1,498
0 votes
2 answers
107 views

How to combine or spend the rest of utxos

I have several utxos in my cardano wallet address created via the cardano-cli that have 1-4 ADA each. Some utxos have an NFT associated with them. Is there a way to spend the rest of several utxos in ...
user avatar
  • 135
1 vote
1 answer
56 views

Script Witness Not Validating for Multisig

I'm getting the following error when trying to consume a UTxO sitting in a multisig script address: [ { "scriptWitnessNotValidating": [ "...
user avatar
8 votes
1 answer
51 views

What's the Lars' UTXO diagrams tool?

Maybe this is not a very interesting question but I'd like to know which is the tool that Lars uses in the lectures to draw UTXO's graphs. Thanks in advance!
user avatar
  • 1,196
1 vote
0 answers
46 views

script for automation sending tokens [closed]

i just finished my first script and would love to share some ideas and also to listen your opinion for additional development. how the script works and what it does create Log file :) while (looping) ...
user avatar
  • 303
1 vote
1 answer
65 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?
user avatar
  • 13
3 votes
1 answer
90 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 ...
user avatar
  • 141
1 vote
1 answer
67 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 ...
user avatar
0 votes
2 answers
185 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 ...
user avatar
  • 3,121
4 votes
1 answer
146 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
0 votes
1 answer
70 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 (...
user avatar
  • 3
4 votes
1 answer
157 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 ...
user avatar
6 votes
1 answer
501 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 ...
user avatar
  • 61
1 vote
2 answers
59 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 ...
user avatar
  • 744
2 votes
2 answers
114 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 ...
user avatar
3 votes
1 answer
145 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 ...
user avatar
1 vote
1 answer
230 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 ...
user avatar
0 votes
1 answer
192 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 ...
user avatar
  • 131
8 votes
4 answers
388 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.
user avatar
4 votes
1 answer
194 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 &...
user avatar
2 votes
1 answer
240 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
user avatar
3 votes
2 answers
55 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 ...
user avatar
  • 31
3 votes
1 answer
78 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?
user avatar
  • 63
3 votes
1 answer
269 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 ...
user avatar
  • 63
4 votes
1 answer
176 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 ...
user avatar
12 votes
2 answers
432 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?
user avatar
  • 181
3 votes
1 answer
99 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 ...
user avatar
  • 131
1 vote
1 answer
91 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 ...
user avatar
  • 113
9 votes
2 answers
516 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/...
user avatar
4 votes
1 answer
67 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 ...
user avatar