Cant update pledge

I’m having trouble updating my pledge on my pool. I have a suspicion of whats wrong. I had roughly 120 ada in my wallet, which at the time had (and still have) 100 ada pledged. I then made several tokens. Later on I sent about 450 more ADA to my wallet. The block chain definitley sees the overall quantity of ADA in that wallet. But because of the tokens, its split across two ID’s. If I try to update my pledge to 500 ADA, I get the below error. Oddly enough its complaining that the UTXO isnt conserved, and then the end of the error shows exactly the correct amount that it needs to be that its complaining about.

Shelley command failed: transaction submit Error: Error while submitting tx: ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 574812645 (fromList [(PolicyID {policyID = ScriptHash “0f0774515198d9e121dd5713ce4435054c9130814c198a4b5e5da14a”},fromList [(“CCIE45407”,1)]),(PolicyID {policyID = ScriptHash “441e0ce6ac7ee8bc0ce1ba9905a829b2d716b1f2ce7826ff7bb5d59e”},fromList [(“GalacticCreditStandard”,9999990000)]),(PolicyID {policyID = ScriptHash “51315043b5288badcd3c15055ea37a951f9a1a6451b6ef08abd9f291”},fromList [(“SPIRA”,19990000)]),(PolicyID {policyID = ScriptHash “7a4e94cd5643e7e668dd6a7284ec57718da75246c0b6598381955444”},fromList [(“GCS”,2000000000)]),(PolicyID {policyID = ScriptHash “88a922706daeff3694eac116f8ac01e4b4b2313ca7e2e58e309f6e69”},fromList [(“JohnHuthmakerWasHere”,1)]),(PolicyID {policyID = ScriptHash “8db9e445116d7597ea47c402f945d28c445be241be3187f4a9945dc5”},fromList [(“GCSLE”,9999990000)]),(PolicyID {policyID = ScriptHash “ab14e034c2db641e3f8ac02b9f2f55b9c8d08ba7067bf34e85f7ac6d”},fromList [(“HS0LOFirstBlockDelegate”,100)]),(PolicyID {policyID = ScriptHash “caa59fddf105aae00bd3d064ea71d8aa035a39dc984e18a06500f2cb”},fromList [(“YourNotEarningRewardsMoveToHS0LO”,9999000000)])])) (Value 574812645 (fromList )))))]

what is the command you are running that gets this error message?

This typically means the the tx-in matching tx-out + fees.
If you had multiple transactions to your address you can use multiple Transactions which belong to your address as tx-in. Find the accoring values with this command

cardano-cli query utxo \
--address $(cat payment.addr) \
--mainnet \
                       TxHash                                 TxIx      Amount

b64ae44e1195b04663ab863b62337e626c65b0c9855a9fbb9ef4458f81a6f5ee 1 1000000000 lovelace

Another possibility is that you do not have the amount of ADA on your Address / Transactions that you think you have.

I had this problem one time because I isolated my Node away from the rest of the network. Therefore it did not reflect the latest changes and i did not get a correct Amount through the above commend. Just check if your TIP is current helps to verify if this might be the case.

You can query the current tip of you node with:

cardano-cli query tip --mainnet

Current tip at 13:54 is 24246550

cardano-cli query utxo \

–address $(cat payment.addr)
TxHash TxIx Am ount

030729287f1ac05dab971550ea65640ab807e8e41e5f4f4038fd0c26e6783715 0 15 6812645 lovelace + 1 0f0774515198d9e121dd5713ce4435054c9130814c198a4b5e5da14a.CC IE45407 + 9999990000 441e0ce6ac7ee8bc0ce1ba9905a829b2d716b1f2ce7826ff7bb5d59e.Ga lacticCreditStandard + 19990000 51315043b5288badcd3c15055ea37a951f9a1a6451b6ef08 abd9f291.SPIRA + 2000000000 7a4e94cd5643e7e668dd6a7284ec57718da75246c0b659838195 5444.GCS + 1 88a922706daeff3694eac116f8ac01e4b4b2313ca7e2e58e309f6e69.JohnHuthma kerWasHere + 9999990000 8db9e445116d7597ea47c402f945d28c445be241be3187f4a9945dc5 .GCSLE + 100 ab14e034c2db641e3f8ac02b9f2f55b9c8d08ba7067bf34e85f7ac6d.HS0LOFirst BlockDelegate + 9999000000 f881cd937d344129dcaf7523d86fd558fb20ce9ff0c729e 1590bf0aa.YourNotEarningRewardsMoveToHS0LO
9f5f08678ed36274652b78bc9d661b560106232d90a72a0e181c98212b3b80cd 2 41 8000000 lovelace

So you can see the lovelace is broken over two segments. The first is 156812645, and the second is 418000000. That is the correct amount if you combine the two. And if you look at the wallet, it shows 574 Ada.

Its the transaction submit command that gives this outcome.

cardano-cli transaction submit --tx-file tx.signed --mainnet

You know, I wonder if I its the actual UTXO count that is the problem. The coin cashew guide pulls up the correct amount of lovelace. And it shows it as 2 UTXO’s. I wonder if the UTXO’s need to include all of the tokens. That would bring it up to 12. Maybe I’ll try that.

cardano-cli query utxo \
    --address $(cat payment.addr) \
    --allegra-era \
    --mainnet > fullUtxo.out

tail -n +3 fullUtxo.out | sort -k3 -nr > balance.out

cat balance.out

while read -r utxo; do
    in_addr=$(awk '{ print $1 }' <<< "${utxo}")
    idx=$(awk '{ print $2 }' <<< "${utxo}")
    utxo_balance=$(awk '{ print $3 }' <<< "${utxo}")
    echo TxHash: ${in_addr}#${idx}
    echo ADA: ${utxo_balance}
    tx_in="${tx_in} --tx-in ${in_addr}#${idx}"
done < balance.out
txcnt=$(cat balance.out | wc -l)
echo Total ADA balance: ${total_balance}
echo Number of UTXOs: ${txcnt}

does Total ADA balance and Number of UTXOs look correct when you run that command? i see lots of transactions with that address so there are going to be a lot of UTXOs

It does, definitely. Although I switched out allegra-era with mary-era.

john@ADA-Block:~/cardano-my-node$ echo Total ADA balance: {total_balance} Total ADA balance: 1014614320 john@ADA-Block:~/cardano-my-node echo Number of UTXOs: ${txcnt}
Number of UTXOs: 2

and you built the transaction beyond the current tip?

--invalid-hereafter $(( ${currentSlot} + 10000))

I was able to get it working. Had to just outright build the transaction from scratch, rather than using scripts. The scripts dont deal with tokens.

gotcha, good to know. Since the transaction was failing it seemed to be something wrong with the tx file format, nice to have a confirmation on that.

hello, i encounter error ValueNotConservedUTxO affter updating to 1.26.1, any suggestion or hint?, I want to update my pledge tho, and following the tutorial from coincashew