16
votes
Accepted
Do old UTXO's ever get pruned from the blockchain?
No, it never gets pruned. One of the appealing features of blockchain is that the history stays there forever.
The size of the blockchain grows roughly linearly (ignoring the effect of adoption), ...
14
votes
Accepted
What exactly is a Redeemer?
From https://iohk.io/en/blog/posts/2021/04/13/plutus-what-you-need-to-know/:
When validating an address, the script will access the data being
carried by the output, the transaction being validated, ...
11
votes
What exactly is a Redeemer?
In simple terms, redeemer is the data that the user of the smart contract provides to the smart contract.
In the simple UTxO model, redeemer is your signature. By providing your signature, you prove ...
10
votes
Accepted
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?).
No, every UTxO (i.e. output you're sending asset to) needs to be atleast 1 ADA. ...
7
votes
Accepted
When a UTxO becomes available for consumption?
That is correct. For a UTxO to be consumed it first has to exist on the blockchain. For it to exist on the blockchain the transaction that created it must exist in a block that has been confirmed by ...
6
votes
What does it mean that a UTxO sits at script address?
UTxOs are always associated with some address or "public key".
Traditionally, on Bitcoin and Cardano that meant a wallet address. And someone could only spend a UTxO in a transaction signed ...
5
votes
Is it possible to send a native token to another wallet while sending the minimum amount of ADA to my own wallet?
Emmanuel is correct, based on the coin name there is an amount of ADA that needs to be sent to every target address.
My native token requires 1.444443 ADA to be sent to each and every target address, ...
5
votes
What exactly is a Redeemer?
Before (E)UTxO - There Was UTxO
Understanding how a UTxO model works (such as BTC) may help you understand the implementation of (E)UTxO in Cardano.
The UTxO Model
A UTxO model, meaning: unspent ...
5
votes
Do old UTXO's ever get pruned from the blockchain?
For the second part of your question (what's to stop the size of the blockchain from growing indefinitely to the point where it's impractical to store on consumer hardware?), there are concepts like ...
5
votes
Accepted
Is there any limit to the number of UTXO's sitting at a script address?
Is there any limit to the number of UTXO's sitting at a script address?
There shouldn't be any practical limit.
UTxOs aren't stored in some memory at an address. The address determines who can spend ...
4
votes
Accepted
Does Cardano suffer from MEV?
The simple answer is yes, a Cardano pool operator could front-run a transaction in the mempool to their advantage. They would need to customize the haskell code to allow their node to order the ...
4
votes
Accepted
Confusion with cardano db sync schema and UTXO model
Thanks for your question.
send about 6000ada to bob then he sends the two UTXOs to bob i.e. 5000ada and 2000ada (total 7000 ada) and he receives a new UTXOs of 1000ada back, right?
Correct. For ...
4
votes
Is eUTxO a generalisation of UTxO
You can think of regular Bitcoin-like UTXO's as a subset of all possible eUTXOs possible to construct on Cardano. Transactions that simply transfer ADA from one wallet to another (and nothing else) ...
4
votes
Accepted
What's the Lars' UTXO diagrams tool?
The tool can be found here.
Lars himself confirmed it in this Discord message.
3
votes
Is there any limit to the number of UTXO's sitting at a script address?
This sounds like a two part question:
Is there any limit to the number of UTXOs stored at a script address
Is there any limit to consuming UTXOs stored at a script address
For the first one, yes and ...
3
votes
What is the relation of "ptr" with UTXO?
The serialization lib is written in Rust and compiled to web assembly. Rust manually manages its memory, and I'm assuming that you need to do the same here. If you look at the typescript types you can ...
3
votes
Accepted
How to send a transaction for Cardano native assets via CLI?
Basically, according to the docs.cardano.org:
cardano-cli transaction build-raw \
--mary-era \
--fee 178393 \
--tx-in ...
3
votes
When a UTxO becomes available for consumption?
You can only grab the gift once it's confirmed on the ledger. Search for awaitTxConfirmed in the source code.
That effect may have configurable level of confirmation in the future as indicated in the ...
3
votes
Accepted
How are staking rewards stored?
Cardano is using what we call a chimeric ledger, which means it uses both account (similar to Ethereum) and UTxO (similar to Bitcoin) style accounting systems.
This enables the ledger to take ...
3
votes
Is it possible to send a native token to another wallet while sending the minimum amount of ADA to my own wallet?
Every Native Asset is sort of conjoined to 1.4XXXXXX ADA from my experience and so it basically impossible to simply just send the native asset by itself. It’s a part of it. You’ll end up having to ...
3
votes
Smart Contract NFT minting with Rarities
We could use your redeemable approach and make it so the seller cant rig it.
This is the idea, you will need to create 2 different minting policies, one for your NFTs and one for the redeemable NFTs, ...
3
votes
Accepted
How to select UTXOs needed for covering a given ada amount using the Cardano Serialization Lib?
You are speaking about what we call Coin Selection Algorithms and they are described in CIP2.
There are several implementations floating around on Github, such as BerryPool implementation of the ...
3
votes
How to combine or spend the rest of utxos
In your build command specify multiple txins and one txout with the sum of all the Ada and tokens from spent utxos.
3
votes
Accepted
A Script With Multiple Different Datum Types
let's say we have a Maybe Integer type, then the value must be assigned as either Just 3 or Nothing.
Directly assigning it as 3 won't work.
So your QuadraDatum should be created as
let dat = ...
3
votes
Get Value of Datum from a UTXO
The upshot is that you might not find a datum but instead get a hash of the datum (it depends).
When submitting a transaction the full "unhashed" datum is not automatically attached to the ...
2
votes
Accepted
Smart contract datum encryption
No, this is not possible right now without verifying just the hash.
Also, an attack vector that comes in mind is that someone will see the tx, validate it before it is included in the blockchain and ...
2
votes
How are transactions prioritized from memory?
We may need different models than what has been done in Uniswap, Keep in mind that Hyrda is coming and can get us around this problem. Unlike other L2 solutions for other blockchains, Plutus code runs ...
2
votes
Accepted
How to list all wallet UTxOs with cardano-cli?
Wallet does not contain UTxOs, only addresses do. Therefore, you first need to derive all your addresses for your wallet and then check it one by one using the command in question.
2
votes
Obscure error while trying to unlock funds from a script from the CLI
I finally made it work, I will leave it here in case anyone encounters the same issue.
The problem was the redeemer. You have to be careful with the encoding of the datums and the redeemer (even if ...
2
votes
How to combine or spend the rest of utxos
I wanted to elaborate on Samuel's answer to be more details. Let's say you are building a transaction that looks like the following:
cardano-cli transaction build-raw \
--tx-in <TxHash>#<TxIx&...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
utxo × 56cardano-cli × 10
plutus × 9
smart-contract × 9
transaction × 8
cardano-serialization-lib × 6
nft × 5
plutus-pioneer-program × 4
native-assets × 4
cardano-db-sync × 4
script × 4
script-addresses × 4
datum × 4
wallet × 3
eutxo × 3
staking × 2
output × 2
multisig × 2
tx × 2
validation × 2
nami-wallet × 2
stake-pool × 1
ada × 1
daedalus × 1
cardano-node × 1