Transaction errors: Failed reading. Your input is either malformed or not hex encoded
Problem: Failed reading: Your input is either malformed or not hex encoded:
$ cardano-cli shelley transaction build-raw \
--tx-in f5296e996940b1c81f781594293d423b4250a454f5832b0740a923f74460d34#1 \
--tx-out $(cat payment2.addr)+100000000 \
--tx-out $(cat payment.addr)+899832033 \
--ttl 335000 --fee 167965 \
--out-file tx001.raw
> option --tx-in: Failed reading: Your input is either
malformed or not hex encoded:
f5296e996940b1c81f781594293d423b4250a454f5832b0740a923f74460d34
Diagnostic:
tx-in is not a valid UTXO
Solution:
Make sure that you are using a correct UTXO. You can query it with:
$ cardano-cli shelley query utxo \
--address $(cat payment.addr) \
--testnet-magic 42