Unable to register stake address on testnet blockchain

I’m following the excellent tutorial here, specifically the section titled “Submit the certificate with a transaction”. The transaction I have defined is the following:

cardano-cli shelley transaction build-raw \
--tx-in e1d6a31051b132bcbca37fcd1e5774deeea19f07fdaeac89b9eb8bac13272fc2#0 \
--tx-out $(cat paymentwithstake.addr)+ 997655138 \
--ttl 5394371 \
--fee 171705 \
--out-file tx.raw \
--certificate-file stake.cert

However, I’m getting the following error message:

option --tx-out: not enough input

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)

I’m unsure if this means I have insufficient funds in my stake address, or if I need to include some kind of metadata file in the definition of the transaction. Can someone please advise? :slight_smile:


you should not put a space in your --tx-out

--tx-out $(cat paymentwithstake.addr)+ 997655138 \

Should be

--tx-out $(cat paymentwithstake.addr)+997655138 \
1 Like

Well spotted! Thanks :slight_smile: