Help: Error: option --tx-out: Failed reading: takeWhile1 (Setting up Stake Pool)

v1.18.0 O/S ubuntu

I am trying to setup a stake pool and have encountered a error, that I cannot solve.
9. Register your stake pool
https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#9-register-your-stake-pool

When I type:

cardano-cli shelley transaction build-raw
{tx_in} \ --tx-out (cat payment.addr)+(( {total_balance} - {poolDeposit})) \ --ttl (( ${currentSlot} + 10000))
–fee 0
–certificate-file pool.cert
–certificate-file deleg.cert
–out-file tx.tmp

I get this error…

option --tx-out: Failed reading: takeWhile1

Usage: cardano-cli shelley transaction build-raw --tx-in TX-IN --tx-out TX-OUT
–ttl SLOT --fee LOVELACE
[–certificate-file FILE]
[–withdrawal WITHDRAWAL]
[–metadata-json-file FILE |
–metadata-cbor-file FILE]
[–update-proposal-file FILE]
–out-file FILE
Build a transaction (low-level, inconvenient)

Any ideas/solution?

Thanks in advance.

What are you planning to do?
From guide that I have
https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/simple_transaction.html
The step of making a simple transaction is

  1. find your hash

cardano-cli shelley query utxo
–address $(cat payment.addr)
–mainnet

You’ll get this

                        TxHash                                 TxIx        Lovelace

4e3a6e7fdcb0d0efa17bf79c13aed2b4cb9baf37fb1aa2e39553d5bd720c5c99 4 20000000

Then you need to create a draft

cardano-cli shelley transaction build-raw
–tx-in 4e3a6e7fdcb0d0efa17bf79c13aed2b4cb9baf37fb1aa2e39553d5bd720c5c99#4
–tx-out (cat payment2.addr)+0 \ --tx-out (cat payment.addr)+0
–ttl 0
–fee 0
–out-file tx.draft

After that calculate the fee

cardano-cli shelley transaction calculate-min-fee
–tx-body-file tx.draft
–tx-in-count 1
–tx-out-count 2
–witness-count 1
–byron-witness-count 0
–mainnet
–protocol-params-file protocol.json

Then they will give you the output for example 167965

from what I see I think you still checking the fee. Am I correct? Because the fee is still 0?

Wait, I think you miss --tx-in

cardano-cli shelley transaction build-raw
–tx-in {tx_in} \ --tx-out (cat payment.addr)+(( {total_balance} - {poolDeposit})) \ --ttl (( ${currentSlot} + 10000))
–fee 0
–certificate-file pool.cert
–certificate-file deleg.cert
–out-file tx.tmp

And welcome aboard…