[ --tx-out: command not found ] error when trying to draft a simple transaction

I am trying to draft the simple transaction for the testnet. When I try to build the command, I get the following error. Why does it unable to find the command, and what can be done to fix this?

Command:

cardano-cli transaction build-raw
–tx-in 61443ac416ac17fedc2f69c97f3d78c30edc2b2a7d2d36d3d83d5349ecbd16d3#0 \
–tx-out $(cat payment2.addr)+100000000
–tx-out $(cat payment.addr)+0
–ttl 0
–fee 0
–out-file tx.raw

Output:

–tx-out: command not found

Hi!

you missed the \ from the end of each line

cardano-cli transaction build-raw \
–tx-in 61443ac416ac17fedc2f69c97f3d78c30edc2b2a7d2d36d3d83d5349ecbd16d3#0 \
–tx-out $(cat payment2.addr)+100000000 \
–tx-out $(cat payment.addr)+0 \
–ttl 0 \
–fee 0 \
–out-file tx.raw

that is a line break, or provide the command in a single line

1 Like

Thank you! I ended up consolidating the command to a single line.

1 Like