I'm trying to consume a UTxO from a script address. When querying the script address with cardano-cli query utxo
, I have the following UTxO:
TxHash TxIx Amount
--------------------------------------------------------------------------------------
10668bed901733bb0977ec72d1abad481865b34ea1c18302caaaa1eafe5784d2 1 1344798 lovelace + TxOutDatumNone
However, when constructing a transaction, I do not know how to represent TxOutDatumNone
:
cardano-cli transaction build \
--alonzo-era \
...
--tx-in 10668bed901733bb0977ec72d1abad481865b34ea1c18302caaaa1eafe5784d2#1 \
--tx-in-datum-value WHAT_TO_PUT_HERE \
...
What I've tried:
- Not passing the
--tx-in-datum-value
altogether results in:
Missing: (--tx-in-datum-file FILE | --tx-in-datum-value JSON VALUE)
- Passing
--tx-in-datum-value 0
results in:
Command failed: transaction build Error: The following scripts have execution failures: the script for transaction input 0 (in the order of the TxIds) failed with: The Plutus script witness for the txin does not have a script datum (according to the UTxO). The txin in question is 10668bed901733bb0977ec72d1abad481865b34ea1c18302caaaa1eafe5784d2#1
- Passing
--tx-in-datum-value null
results in:
option --tx-in-datum-value: JSON schema error within the script data: null JSON null values are not supported.