I am following the CoinCashew Guide and got to the last step to register the stake pool but am facing this error when trying to submit the transaction.
Input command :
cardano-cli transaction submit --tx-file tx.signed --mainnet
Output Error:
Shelley command failed: transaction submit Error: Error while submitting tx: ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 10546245241 (fromList [])) (Value 10046245241 (fromList [])))))]
Clearly the amount of ADA is not the issueâŚ
Im guessing it has to do with one of the addresses having an invalid Utxo leftover but im not sure how to rectify the issue.
Thanks in advance.
Using this command to build tx.raw:
cardano-cli transaction build-raw ${tx_in} --tx-out $(cat payment.addr)+${txOut} --invalid-hereafter $(( ${currentSlot} + 10000)) --fee ${fee} --certificate-file pool.cert --certificate-file deleg.cert --mary-era --out-file tx.raw
the 500 ADA for registering the pool were deducted?
Cheers,
Hi There!
please provide the build command with replacing the variables with the valuesâŚ
I donât believe it was since my balance is still the same as before the transaction.
txcnt=$(cat balance.out | wc -l)
echo Total ADA balance: ${total_balance}
Total ADA balance: 10546245241
txOut=$((${total_balance}-${poolDeposit}-${fee}))
echo txOut: ${txOut}
txOut: 10046038820
as far as I understand the 500 ADA being deducted is the pool deposit but I canât submit the transaction
Im not too sure what the values are, I believe it should be the pool deposit
and fee. Since the 345 registration fee ADA was already deducted from the balance.
Unless I am missing something? What is the total ada needed to register stake address and pool? Ive deposited more than I thought I would need but somehow still ended up short and needed to deposit more
What does this command give you back?
cardano-cli query utxo --address $(cat payment.addr) --mainnet --mary-era
500 ADA is the cost for pool registration
Alex, I think he added the pool deposit to the txOut:
10546245241â10046038820=500206421
1 Like
I ran this command after following
https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/register_stakepool.html
to build the tx.raw
cardano-cli transaction build-raw --tx-in REMOVED#0--tx-out $(cat payment.addr)+9528804139 --invalid-hereafter 25534392--fee 195861 --out-file tx.raw --certificate-file pool.cert --certificate-file deleg.cert
cardano-cli query utxo --address $(cat payment.addr) --mainnet --mary-era
TxHash TxIx Amount
REMOVED 0 10029000000 lovelace
Removed 0 307445241 lovelace
Removed 0 199800000 lovelace
Removed 0 10000000 lovelace
It says the pool deposit is stored in the protocol.json could it be i screwed up in there?
Protocol.json
{
âpoolDepositâ: 500000000,
âprotocolVersionâ: {
âminorâ: 0,
âmajorâ: 4
},
âminUTxOValueâ: 1000000,
âdecentralisationParamâ: 6.0e-2,
âmaxTxSizeâ: 16384,
âminPoolCostâ: 340000000,
âminFeeAâ: 44,
âmaxBlockBodySizeâ: 65536,
âminFeeBâ: 155381,
âeMaxâ: 18,
âextraEntropyâ: {
âtagâ: âNeutralNonceâ
},
âmaxBlockHeaderSizeâ: 1100,
âkeyDepositâ: 2000000,
ânOptâ: 500,
ârhoâ: 3.0e-3,
âtauâ: 0.2,
âa0â: 0.3
}
9528804139+195861+500000000=10029000000 - so I think you are fine with the calculations. protocol.json only tells you what is the pool deposit - but right now it is 500 ADA
so are you sure you provided the whole output of the submit command?
Full command submit output:
cardano-cli transaction submit --tx-file tx.signed --mainnet
Shelley command failed: transaction submit Error: Error while submitting tx: ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 10029000000 (fromList [])) (Value 9529000000 (fromList [])))))]
and 345 ADA for registering? Is that all the costs?
strange - the fee somehow not presented in the output