[CAFE] Blog & Knowledge Base

Latest news from CardanoCafe & useful information for stake pool operators

Registering stake pool with metadata fails?

written by CardanoCafe Team published at 2020-08-31

This guide tries to help when the registration of your stake pools with metadata fails.

Have you checked your calculated minimum-fee a hundred times and you still can't get your stake pool registered on the blockchain?

In chapter 8.7 the min-fee is calculated this way:

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

Please note that in chapter 8.10 you are going to sign the transaction with three signing files:

--signing-key-file payment.skey \
--signing-key-file stake.skey \
--signing-key-file cold.skey \

Therefore you have to increase --witness-count 1 to --witness-count 3.

Please also note, that the cardano documentation uses --tx-body-file tx.raw. Strictly speaking, when you have followed the guide closely, at this point, no tx.raw exists. You have to replace this by tx.draft. Look:

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

And Voila - It should work!