Error during registration

I received following error even I followed the exact instructions from Guide: How to build a Cardano Stake Pool - CoinCashew

Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 501000000 (fromList )) (Value 3000000 (fromList ))))),LedgerFailure (UtxowFailure (UtxoFailure (OutputTooSmallUTxO [(Addr Mainnet (KeyHashObj (KeyHash “b8b04df~~~~”)) (StakeRefBase (KeyHashObj (KeyHash “c88c~~~~~”))),Value 817955 (fromList ))])))])`

Hi!

Could you provide all the outputs of echo command related to pool registration? specially txout and txin and fee.

1 Like

@ laplasz

3mHi! thank you for your help

dai@core:~/cardano-my-node$ cardano-cli query utxo \

--address $(cat payment.addr) \
--mainnet > fullUtxo.out

dai@core:~/cardano-my-node$
dai@core:~/cardano-my-node$ tail -n +3 fullUtxo.out | sort -k3 -nr > balance.out
dai@core:~/cardano-my-node$
dai@core:~/cardano-my-node$ cat balance.out
5bdf0fcbb620014436bd9b73b2597f706060dc3ca8efd1f09bb639825a2f481b 0 500000000 lovelace
1af13b4272a9b736c49e6c80d8ccd5d927a8c01b1326fb0354472963a05e88bf 0 1000000 lovelace
dai@core:~/cardano-my-node$
dai@core:~/cardano-my-node$ tx_in=“”
dai@core:~/cardano-my-node$ total_balance=0
dai@core:~/cardano-my-node$ while read -r utxo; do

in_addr=$(awk '{ print $1 }' <<< "${utxo}")
idx=$(awk '{ print $2 }' <<< "${utxo}")
utxo_balance=$(awk '{ print $3 }' <<< "${utxo}")
total_balance=$((${total_balance}+${utxo_balance}))
echo TxHash: ${in_addr}#${idx}
echo ADA: ${utxo_balance}
tx_in="${tx_in} --tx-in ${in_addr}#${idx}"

done < balance.out
TxHash: 5bdf0fcbb620014436bd9b73b2597f706060dc3ca8efd1f09bb639825a2f481b#0
ADA: 500000000
TxHash: 1af13b4272a9b736c49e6c80d8ccd5d927a8c01b1326fb0354472963a05e88bf#0
ADA: 1000000
dai@core:~/cardano-my-node$ txcnt=$(cat balance.out | wc -l)
dai@core:~/cardano-my-node$ echo Total ADA balance: ${total_balance}
Total ADA balance: 501000000
dai@core:~/cardano-my-node$ echo Number of UTXOs: ${txcnt}
Number of UTXOs: 2

Actually the problem might be that the remaining balance would be less the 1 ADA after the transaction submit. Is it possible to put at least 1 more ADA into your balance and check what happens?

1 Like

1ADA?
okay I’ll try it

@laplasz
hi the outcome changed, still error tho.

Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 502000000 (fromList )) (Value 4000000 (fromList )))))])
dai@core:~/cardano-my

1 Like

So what is the output txOut?

txOut=$((${total_balance}-${stakeAddressDeposit}-${fee}))
echo Change Output: ${txOut}

and fee
echo ${fee}

echo Change Output: ${txOut}
Change Output: 502185389
dai@core:~/cardano-my-node$
dai@core:~/cardano-my-node$ echo ${fee}
185389

Does this mean I still need a couple more ada???

That is not correct… try to do the math again:
txOut=$((${total_balance}-${stakeAddressDeposit}-${fee}))

dai@core:~/cardano-my-node$ txOut=$((${total_balance}-${stakeAddressDeposit}-${fee}))
dai@core:~/cardano-my-node$ echo Change Output: ${txOut}
Change Output: 502185389

something wrong…

txOut=$((${total_balance}-${stakePoolDeposit}-${fee}))
dai@core:~/cardano-my-node$ echo Change Output: ${txOut}
Change Output: 1814611

I think I used stakePoolDeposit=$(cat $NODE_HOME/params.json | jq -r ‘.stakePoolDeposit’)
echo stakePoolDeposit: $stakePoolDeposit
instead of ${stakeAddressDeposit}

should I use$stakePoolDeposit?

Hi!

open the file params.json - cat params.json and you will see what name you need to use… but the value will be 500000000 so you can calculate the txOut like this without the stake pool deposit variable:
txOut=$((${total_balance}-500000000-${fee}))

Yeah it was $stakePoolDeposit
Change Output: 1814611

hmnnnn where should i fix lmao

ahh, the guide contains the earlier version of protocol.json - so just ignore it, and use the actual one

:weary: :weary: :weary:
is this bug related? https://github.com/input-output-hk/cardano-node/issues/2380

They say

Registration of a stake address certificate (stakePoolDeposit) costs 2000000 lovelace.

The params.json file shows
cat params.json
{
“txFeePerByte”: 44,
“minUTxOValue”: 1000000,
“stakePoolDeposit”: 500000000,
“decentralization”: 0,
“poolRetireMaxEpoch”: 18,
“extraPraosEntropy”: null,
“stakePoolTargetNum”: 500,
“maxBlockBodySize”: 65536,
“maxTxSize”: 16384,
“treasuryCut”: 0.2,
“minPoolCost”: 340000000,
“maxBlockHeaderSize”: 1100,
“protocolVersion”: {
“minor”: 0,
“major”: 4
},
“txFeeFixed”: 155381,
“stakeAddressDeposit”: 2000000,
“monetaryExpansion”: 3.0e-3,
“poolPledgeInfluence”: 0.3

which means registration fee now is 200ADA not 500ADA?
This seems also I should use stakeAddressDeposit not stakePoolDeposit

That is needed for now
The stakeAddressDeposit is for registering stake address, not pool

I understand…

Do you have any idea to fix this issue?

So what was the result of the transaction submit after you calculated the correct txOut?

cardano-cli transaction submit \
>     --tx-file tx.signed \
>     --mainnet
Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 502000000 (fromList [])) (Value 4000000 (fromList [])))))])