Questions tagged [redeemer]
The redeemer tag has no usage guidance.
11
questions
2
votes
1
answer
41
views
Meaning of Index of Redeemer in Serialization Lib 10.4
What is the meaning of the index in the redeemer ?
redeemer = [ tag: redeemer_tag, index: uint, data: plutus_data, ex_units: ex_units
for context see:
https://github.com/input-output-hk/cardano-...
1
vote
2
answers
24
views
What is the mkValidator Script
In Plutus scripts there is a mkValidator where it takes in the datum , redeemer , and script context. In the plutus-pionner-program , the plutus scripts they show us uses these three parameters to ...
2
votes
2
answers
97
views
Plutus datum and redeemer on cardano-cli
I'm trying to deploy a smart contract on cardano-cli after its implementation on plutus playground.
Imagine that I have:
data TradeDatum = StartBid | Bid TradeDetails | Offer TradeDetails
...
9
votes
2
answers
159
views
What is where executed and when?
To wrap my around what happens when I where, I tried to visualize it. In order to be able to show the interaction between two different systems generating transactions, I have a Generator A and ...
2
votes
1
answer
66
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 ...
1
vote
1
answer
45
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
1
answer
41
views
Does the redeemer have to be from a wallet address/contract?
Could a contract be programmed such that the redeemer seemingly comes from nowhere from what the node / someone monitoring the blockchain could tell? I am thinking if you gave the contract some ada ...
0
votes
1
answer
34
views
Is Redeemer similar to <ScriptSig> in bitcoin context?
In the (e)UTxO model, discussed in the 1st lecture of PPP#3, I am trying to understand the differences between the UTxO model of Bitcoin and the (e)UTxO model of Cardano.
From what I understand, the &...
1
vote
1
answer
62
views
How does the final transaction in the auction example know who did the bid?
In the second transaction of the auction example, these are the output EUTxO's. In the final transaction, only wallet 1 and the script are inputs. How does the script know that wallet 3 has done the ...
1
vote
1
answer
179
views
Finding the redeemer of another UTxO in a transaction
I want to have a minting policy that checks some conditions of another input-utxo of the transaction. Fetching all transaction inputs and iterating over them is possible using txInfoInputs (see plutus-...
16
votes
5
answers
1k
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 ...