New answers tagged

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 ...
user avatar
  • 803
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 ...
user avatar
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: ...
user avatar
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(); ...
user avatar
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 = ...
user avatar

Top 50 recent answers are included