Hi All,
Im getting the error “ValueNotConservedUTxO” when re-submitting a pool registration. The pool is already registered and im adding a second owner. Ive calculated minimum fee, built and signed the transaction, when i submit the transaction to the network i get the following error:
Hi, i had recalculated the fee, and had bumped the witness count to 3 from 2, im wondering if my balance is not enough and that is what is giving the error (2.752 ADA in the operators balance)
Yeah i think you are right, I’m probably not getting the witnesses number right. The balance is not the issue (i just added from funds and it didn’t change the outcome).
After calculating the minimum fees, when building the raw transaction again with the correct fee, there should be $total_balance-$fee in --tx-out. Or is it stored in a variable?
The error message clearly says that there are only 2.8 ADA in there, where there should be around 11 ADA.
(Also: Try 4 witnesses, in case we are both wrong and it’s in the middle.)
Anyway, you can use “cardano-cli transaction build” instead of “build-raw” and it will automatically calculate the minimum fee required for the transaction while creating the transaction file. I don’t know why the guides available don’t update the transactions. You cannot use “transaction build” yet with hardware wallets (because the firmware does not allow yet Alonzo era transactions), but this will be also available sometime in the near future.