# Transaction fails ValueNotConservedUTxO Value 0

**URL:** <https://forum.cardano.org/t/transaction-fails-valuenotconservedutxo-value-0/62271>\
**Category:** Operate a Stake Pool\
**Created:** [21 May 2021 16:41 UTC](https://forum.cardano.org/t/transaction-fails-valuenotconservedutxo-value-0/62271 "2021-05-21T16:41:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Carlos](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Jose\_Carlos](https://forum.cardano.org/u/Jose_Carlos)\
**Post date:** [21 May 2021 16:41 UTC](https://forum.cardano.org/t/transaction-fails-valuenotconservedutxo-value-0/62271/1 "2021-05-21T16:41:30Z")

</div>

This is very similar the topic I made but I prefer to make another one, because the withdrawal was succeeded, now I’m having problems to send the rewards to my wallet address. I did similar things before sending native assets, but its the first time sending only ADA from one address to another, in this case a Daedallus address..

Node is running 1.27.0 and fully synced.

I’m pasting the commands I already tried using this guide from Cardano-node GitHub which supposedly to be correct…  
[https://github.com/input-output-hk/cardano-node/blob/master/doc/stake-pool-operations/simple\_transaction.md](https://github.com/input-output-hk/cardano-node/blob/master/doc/stake-pool-operations/simple_transaction.md)

$txin 0 737045127 lovelace

# Draft transaction

cardano-cli transaction build-raw   
–tx-in $txin#4   
–tx-out $(cat payment2.addr)+0   
–tx-out $(cat payment.addr)+0   
–invalid-hereafter 0   
–fee 0   
–out-file tx.draft

# Calculate min fees

cardano-cli transaction calculate-min-fee   
–tx-body-file tx.draft   
–tx-in-count 1   
–tx-out-count 2   
–witness-count 1   
–byron-witness-count 0   
–mainnet   
–protocol-params-file protocol.json

176413 Lovelace

expr - -   
expr 737045127 - 690381863 - 176413  
46486851

# Query tip

cardano-cli query tip --mainnet  
{  
“epoch”: 267,  
“hash”: “2cbaaaa6ad3985d8406f83c42934bcfa1f803f0b5f5e5080ef21e3901bb7e1c4”,  
“slot”: 30043444,  
“block”: 5747274,  
“era”: “Mary”  
}

# Build raw

cardano-cli transaction build-raw   
–tx-in $txin#4   
–tx-out $(cat payment2.addr)+690381863   
–tx-out $(cat payment.addr)+46486851   
–invalid-hereafter 30049012   
–fee 176413   
–out-file tx.raw

# Sign

cardano-cli transaction sign   
–tx-body-file tx.raw   
–signing-key-file payment.skey   
–mainnet   
–out-file tx.signed

# Submit

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

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

I still don’t know what’s going on. Clear is about the values in the address not be corrected, still didn’t get it how to make the correct calculations.

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [21 May 2021 18:40 UTC](https://forum.cardano.org/t/transaction-fails-valuenotconservedutxo-value-0/62271/2 "2021-05-21T18:40:06Z")

</div>

Hi!

What is the output of

```auto
cardano-cli query utxo \
  --address $(cat payment.addr) \
  --mainnet

```

---

<div class="post-metadata">

**Author:** ![Jose\_Carlos](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Jose\_Carlos](https://forum.cardano.org/u/Jose_Carlos)\
**Post date:** [25 May 2021 15:14 UTC](https://forum.cardano.org/t/transaction-fails-valuenotconservedutxo-value-0/62271/3 "2021-05-25T15:14:30Z")

</div>

finally found a solution… thanks

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [25 May 2021 15:29 UTC](https://forum.cardano.org/t/transaction-fails-valuenotconservedutxo-value-0/62271/4 "2021-05-25T15:29:16Z")

</div>

Great! if you could just mention which step was faulty…
