I’ve run into the same problem on 1.26.2, although I’m trying to register the stake pool on testnet. I posted a message at [BUG] - ValueNotConservedUTxO on pool registration updates · Issue #2380 · input-output-hk/cardano-node · GitHub. Here’s what I posted:
I just recently started building and registering nodes on 1.26.2 (just testnet right now) and getting the same ValueNotConservedUTxO error when I try to submit the pool and delegation certificates to the testnet blockchain. I’ve been following the guide at 8. Registering a Stake Pool with Metadata — cardano-node Documentation 1.0.0 documentation. Maybe it’s a bug, maybe it’s my error. Although if ThrDragon hasn’t changed the workflow, maybe it’s not human error. I’ve run the sequence of scripts three times, including the calculation of change, and I’m sure I have the right amounts. The draft script
cardano-cli transaction build-raw
–tx-in 15…#0
–tx-out $(cat payment.addr)+0
–invalid-hereafter 0
–fee 0
–out-file tx.draft
–certificate-file pool-registration.cert
–certificate-file delegation.cert
Calculating the fee
cardano-cli transaction calculate-min-fee
–tx-body-file tx.draft
–tx-in-count 1
–tx-out-count 1
–witness-count 3
–byron-witness-count 0
–testnet-magic 1097911063
–protocol-params-file protocol.json
which resulted in a fee of 196125 Lovelace
Calculating change back based on the 1000 ADA from balance and the 500 ada deposit to register, and the fee, the change back is 499803875 lovelace.
Script to build actual transaction
cardano-cli transaction build-raw
–tx-in 15…#0
–tx-out $(cat payment.addr)+499803875
–invalid-hereafter 25384566
–fee 196125
–out-file tx.raw
then signed the transaction
cardano-cli transaction sign
–tx-body-file tx.raw
–signing-key-file payment.skey
–signing-key-file stake.skey
–signing-key-file cold.skey
–testnet-magic 1097911063
–out-file tx.signed
then submitted
cardano-cli transaction submit
–tx-file tx.signed
–testnet-magic 1097911063
And I get this
Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 1000000000 (fromList )) (Value 500000000 (fromList )))))])
A couple of days ago, also on 1.26.2, I was able to successfully return ADA to the testnet faucet, so that transaction worked.