New answers tagged datum
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
Get Value of Datum from a UTXO
The ChainIndexTxOut type has a data field called _ciTxOutValue :: Value and another that is _ciTxOutDatum :: Either DatumHash Datum I'll show you how to get the value. Getting the datum is the same ...
1
vote
Get Value of Datum from a UTXO
OffChain:
It's a datum hash - so there is no reverse lookup if you don't know how to construct datums for a given contract.
Datum values are usually provided by the consumer of a script UTxO.
OnChain:
...
1
vote
Accepted
How to provide Datum value using serialization lib
Thanks to Sebastien, there is an open issue for this.
Github Feature Request
Besides, one can attach the datum separately to the tx witness set, like so for example:
const datums = PlutusList.new();
...
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 = ...
Top 50 recent answers are included
Related Tags
datum × 34plutus × 14
cardano-cli × 8
transaction × 5
redeemer × 5
plutus-pioneer-program × 4
utxo × 4
datum-value × 3
nft × 2
eutxo × 2
cardano-serialization-lib × 2
offchain × 2
types × 2
wallet × 1
smart-contract × 1
cardano-node × 1
yoroi × 1
haskell × 1
address × 1
metadata × 1
plutustx × 1
documentation × 1
cardano-db-sync × 1
script-addresses × 1
pab × 1