Error When Signing Transaction To Send Funds - WithdrawalsNotInRewardsDELEGS

Im trying to send my rewards to the payment address and got this error, anyone know anything that could help me?

Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 857375850 (fromList )) (Value 11062003547 (fromList )))),UtxowFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId {_unTxId = SafeHash “d9e8bcbf674e3405e4f0d2652cb839fb7253e85c4fffee0fd9a6a2a0a0205e70”}) 0]))),DelegsFailure (WithdrawalsNotInRewardsDELEGS (fromList [(RewardAcnt {getRwdNetwork = Mainnet, getRwdCred = KeyHashObj (KeyHash “0336a2a38bb4eeaa5a400320c019cf2c6008aaff11234208b1a7bcb2”)},Coin 857375850)]))])

Hi!

Did you withdraw the entire reward?

I believe so I followed the coin cashew guide

rewardBalance=$(cardano-cli query stake-address-info
–mainnet
–address $(cat stake.addr) | jq -r “.[0].rewardAccountBalance”)
echo rewardBalance: $rewardBalance

1 Like

ok - and are you sure that the tx-out calculated correctly?
could you copy the output of echo commands from the guide?

Transaction Output as stated here

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

ok but something is not ok - so need the actual values of the variables, because the tx-in and tx-out not matching…

Got it, ik that 857****** comes from the amount in the rewards wallet, no clue what the 1106 number is, do you know what it is supposed to represent.

so what is the txOut value currently?

That is the 1106 number

cardano-cli transaction build-raw \
--tx-in a82f8d2a85cde39118a894306ad7a85ba40af221406064a56bdd9b3c61153527#1 \
--tx-out $(cat payment.addr)+11062003547 \
--withdrawal $(cat stake.addr)+857375850\
--invalid-hereafter 12345678 \
--fee 171089 \
--out-file withdraw_rewards.raw

So that is the transaction build look like?

Okay I understand that the 11062003547 should be the total amount of ADA after I transfer the from the stake.addr, this seems to be correct

Submitted again with updated fees and still error code:

Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 857375850 (fromList )) (Value 11062003547 (fromList )))),UtxowFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId {_unTxId = SafeHash “d9e8bcbf674e3405e4f0d2652cb839fb7253e85c4fffee0fd9a6a2a0a0205e70”}) 0]))),DelegsFailure (WithdrawalsNotInRewardsDELEGS (fromList [(RewardAcnt {getRwdNetwork = Mainnet, getRwdCred = KeyHashObj (KeyHash “0336a2a38bb4eeaa5a400320c019cf2c6008aaff11234208b1a7bcb2”)},Coin 857375850)]))])

what is the current balance on --tx-in?

Updated KES keys still same error, im following coincashew so all my inputs and outputs should be and look good

Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 0 (fromList )) (Value 10204627697 (fromList )))),UtxowFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId {_unTxId = SafeHash “d9e8bcbf674e3405e4f0d2652cb839fb7253e85c4fffee0fd9a6a2a0a0205e70”}) 0])))])