Unexpected end of input when building transaction

Hi there,

I am trying to transfer a “testcoin” from one address to another:

 cardano-cli transaction build-raw \
 --tx-in 307ad8b1c96516dd97a5fbee97e1b43c3dc8763db0509b6863046c266bad7a9a#0 \
 --tx-out $(cat addr1/payment.addr)+1407406+"2 $6b8d07d69639e9413dd637a1a815a7323c69c86abbafb66dbfdb1aa7" \
 --ttl 0 \
 --fee 0 \
 --out-file ctx.raw \

However when I execute this command I get the following message:

option --tx-out: 
unexpected end of input
expecting hexadecimal digit
expecting a 56 hex-encoded policy ID, but found only 55 hex digits

I get my policy ID from cardano-cli query utxo --address $(ADDRESS) and the transaction is sending the min ada of 1407406 with the coin to the other address.

Does anyone know what I am doing wrong? I have been stuck on this for a while.

Thanks.

2 Likes