# TX Help - Unable to send transaction errors

**URL:** <https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029>\
**Category:** Operate a Stake Pool\
**Created:** [15 February 2021 09:42 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029 "2021-02-15T09:42:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanj](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@ryanj](https://forum.cardano.org/u/ryanj)\
**Post date:** [15 February 2021 09:42 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/1 "2021-02-15T09:42:43Z")

</div>

```
cardano-cli query utxo \
--address $(cat keys/payment.addr) \
--mainnet \
--allegra-era

                           TxHash TxIx Amount
--------------------------------------------------------------------------------------
3cb6142f56212759e40f86c61a002c824fef6d9468f52b8638ce226e4edb09e3 0 1000000
492e76213a0a2a38822a10b0b17c725ee6c5e5bbc17850d636fda420ec695603 0 5000000
bcba40888dfd99deb276ad2928958d817f3bd3b95bf47c84f61919ae6ace7953 0 502011024

cardano-cli transaction build-raw \
--tx-in bcba40888dfd99deb276ad2928958d817f3bd3b95bf47c84f61919ae6ace7953#0 \
--tx-in 492e76213a0a2a38822a10b0b17c725ee6c5e5bbc17850d636fda420ec695603#0 \
--tx-in 3cb6142f56212759e40f86c61a002c824fef6d9468f52b8638ce226e4edb09e3#0 \
--tx-out addr1qyqgpa2upfmuyjtm2myjc43l6u4f5hahj0hnghex9dm5y6xrzdkdfapgx33rm343s85ps8nzczu978n0yrkjxn3chwysp27ccg+0 \
--tx-out $(cat keys/payment.addr)+0 \
--invalid-hereafter 0 \
--fee 0 \
--out-file tx.draft

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

508011024 - 503011024 - 183101 = 4816899

cardano-cli transaction build-raw \
--tx-in bcba40888dfd99deb276ad2928958d817f3bd3b95bf47c84f61919ae6ace7953#0 \
--tx-in 492e76213a0a2a38822a10b0b17c725ee6c5e5bbc17850d636fda420ec695603#0 \
--tx-in 3cb6142f56212759e40f86c61a002c824fef6d9468f52b8638ce226e4edb09e3#0 \
--tx-out addr1qyqgpa2upfmuyjtm2myjc43l6u4f5hahj0hnghex9dm5y6xrzdkdfapgx33rm343s85ps8nzczu978n0yrkjxn3chwysp27ccg+503011024 \
--tx-out $(cat keys/payment.addr)+4816899 \
--invalid-hereafter 21815237 \
--fee 183101 \
--out-file tx.draft

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

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

```

Gives the error:

```
Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAllegra (ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 21807823)}) (SlotNo 21815670)))),LedgerFailure (UtxowFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId {_unTxId = "4e..."}) 4])))),LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (DeltaCoin 0) (DeltaCoin 177557)))),LedgerFailure (UtxowFailure (UtxoFailure (OutputTooSmallUTxO [(Addr Mainnet (KeyHashObj (KeyHash "ed...")) (StakeRefBase (KeyHashObj (KeyHash "6e..."))),Coin 0)])))])

```

I’m querying cardano-cli query tip --mainnet and taking the slot + 200 as well. I really don’t understand what I’m doing wrong here, can anyone please help?

---

<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:** [15 February 2021 11:17 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/2 "2021-02-15T11:17:24Z")

</div>

Hi!

try to use only 1 tx-in address - the 3rd one with the most ADA. there is another topic with similar issue. perhaps there is a tx with less than 1 ADA after the transaction…

> [@TX Help - OutputTooSmallUTXO erro](https://forum.cardano.org/t/tx-help-outputtoosmallutxo-erro/47356):
>
> I am getting the error below when trying to send a transaction from my staking server: Shelley command failed: transaction submit Error: Error while submitting tx: ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (OutputTooSmallUTxO [(Addr Mainnet Any one know what this means and how to resolve?

---

<div class="post-metadata">

**Author:** ![ryanj](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@ryanj](https://forum.cardano.org/u/ryanj)\
**Post date:** [20 February 2021 03:55 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/3 "2021-02-20T03:55:24Z")

</div>

Still no luck, however, I ended up registering my stake pool with the 500ADA. Fingers crossed [[DOGE] DogePool | Cardano Staking](https://adapools.org/pool/a64a9041d51b6d8566ee18b2812e052a05e79a9544c26b027fb9502d) is a success :D!

---

<div class="post-metadata">

**Author:** ![milosmns](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/milosmns/32/28706_2.png) [@milosmns](https://forum.cardano.org/u/milosmns)\
**Post date:** [27 February 2021 16:55 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/4 "2021-02-27T16:55:48Z")

</div>

This shouldn’t be marked as “solution” though 🙂  
I just got the same issue and got my hopes up… but nope…

---

<div class="post-metadata">

**Author:** ![0percentpool](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/0percentpool/32/28725_2.png) [@0percentpool](https://forum.cardano.org/u/0percentpool)\
**Post date:** [27 February 2021 19:21 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/7 "2021-02-27T19:21:45Z")

</div>

Change `--out-file`:

```
cardano-cli transaction build-raw \
[...]
--out-file tx.draft

```

to:

```
cardano-cli transaction build-raw \
[...]
--out-file tx.raw

```

so that you are signing the appropriate transaction.

When sending the full amount, you do not need to send yourself back the change.  
eg: `508011024 - 183101 = 507827923`. The only time `minUTxOValue` takes effect is when you create a UTxO with change.

---

<div class="post-metadata">

**Author:** ![Juraj\_Spindor](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/juraj_spindor/32/24388_2.png) [@Juraj\_Spindor](https://forum.cardano.org/u/Juraj_Spindor)\
**Post date:** [1 March 2021 22:58 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/8 "2021-03-01T22:58:30Z")

</div>

Hi, I have similar problem, i am doing exactly whats in the tutorial (sending simple transaction) : [Guide: How to build a Cardano Stake Pool - CoinCashew](https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#18-9-send-a-simple-transaction-example)

Everything seems OK, until i run last part of code :  
cardano-cli transaction submit   
–tx-file tx.signed   
–mainnet

It gives me error :

Shelley command failed: transaction submit Error: Error while submitting tx: ApplyTxError  
[LedgerFailure (UtxowFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId  
{\_unTxId = “9d2a28fbe34b33cb89961e8ef767a25083dadf3dddee553264fe1fcd4e2e9a37”}) 0])))),  
LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (DeltaCoin 0) (DeltaCoin 6095240671))))]

I have 1.24.2 cardano-cli version, do you know what is the problem?  
Thanks

---

<div class="post-metadata">

**Author:** ![karljohan12](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/karljohan12/32/26945_2.png) [@karljohan12](https://forum.cardano.org/u/karljohan12)\
**Post date:** [1 March 2021 23:01 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/9 "2021-03-01T23:01:22Z")

</div>

Have you used allegra or mary era to build your transactions?

---

<div class="post-metadata">

**Author:** ![Juraj\_Spindor](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/juraj_spindor/32/24388_2.png) [@Juraj\_Spindor](https://forum.cardano.org/u/Juraj_Spindor)\
**Post date:** [1 March 2021 23:03 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/10 "2021-03-01T23:03:33Z")

</div>

cardano-cli transaction build-raw   
{tx\_in} \ --tx-out (cat payment.addr)+{txOut} \ --tx-out {destinationAddress}+{amountToSend} \ --invalid-hereafter (( {currentSlot} + 10000)) \ --fee {fee}   
–allegra-era   
–out-file tx.raw

so allegra

---

<div class="post-metadata">

**Author:** ![karljohan12](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/karljohan12/32/26945_2.png) [@karljohan12](https://forum.cardano.org/u/karljohan12)\
**Post date:** [1 March 2021 23:07 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/11 "2021-03-01T23:07:17Z")

</div>

Try using mary-era instead, mary-hardfork has been released, use mary for every command instead of allegra in the future 😃

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [4 June 2021 14:24 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/12 "2021-06-04T14:24:20Z")

</div>

Hi! I got the same issue and I added the --mary-era option, but I’m having the same problem:

`Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 1000000000 (fromList [])) (Value 2000000000 (fromList [])))),UtxowFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 28443327)}) (SlotNo 28447251))),DelegsFailure (DelplFailure (DelegFailure (StakeDelegationImpossibleDELEG (KeyHashObj (KeyHash "3a887bc794b6f2feff6de1a87583bb2afa95b5d8123e8e8967e0b1d6")))))])`

---

<div class="post-metadata">

**Author:** ![sanju](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@sanju](https://forum.cardano.org/u/sanju)\
**Post date:** [16 September 2021 10:29 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/13 "2021-09-16T10:29:08Z")

</div>

**i have solved it** _i was facing same issue_  
PLZ calculate the value it should be exact same to your balance & **don’t forget to calculate the gas fees firstly** its already comes before this command

cardano-cli transaction build-raw   
–tx-in 96af3a4293ce505b36524feafd30c58ce3cd6e95080760b5c6d18268663f9dbc9#0   
–tx-out $(cat /home/ubuntu/cardano/keys/payment2.addr)+150000000   
–tx-out $(cat /home/ubuntu/cardano/keys/payment1.addr)+849825303   
–fee 174697   
–out-file /home/ubuntu/cardano/tx.raw

in my case i have 100,000,000 Lovelace (100ADA)

150000000 + 849825303 + 174697 = 100,000,000

Happy cordano transaction  
Thanks me later

---

<div class="post-metadata">

**Author:** ![rahkster](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/rahkster/32/43582_2.png) [@rahkster](https://forum.cardano.org/u/rahkster)\
**Post date:** [27 September 2021 05:52 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/14 "2021-09-27T05:52:10Z")

</div>

Hello! I am experiencing the same issue.

```auto
Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (OutputTooSmallUTxO [(Addr Mainnet (KeyHashObj (KeyHash "ce504498a6fg56745fa7004c2183a276d56379bafas72c74255b4b97d0474886")) StakeRefNull,Value 19 (fromList []),SNothing)])))])

```

I’m trying to send 1 ADA (minus the fee of 175,181 Lovelace) so a total of 824,819 Lovelace to be sent.

Is there a minimum value? I want to zero out some accounts and consolidate. Don’t want to leave a single Lovelace behind!

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [27 September 2021 06:07 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/15 "2021-09-27T06:07:35Z")

</div>

1 ADA + fee is the minimum amount, if I remember well

---

<div class="post-metadata">

**Author:** ![rahkster](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/rahkster/32/43582_2.png) [@rahkster](https://forum.cardano.org/u/rahkster)\
**Post date:** [27 September 2021 23:48 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/16 "2021-09-27T23:48:14Z")

</div>

Whoa that’s crazy! So that means there’ll be lots of instances where there will be UTXOs \<1 ADA over the years. Lots of TxHashes that can never be cleared out like my example above.

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [27 September 2021 23:51 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/17 "2021-09-27T23:51:46Z")

</div>

> [@rahkster](#):
>
> at means there’ll be lots of instances where

I understood in the past that this “issue” will be fixed, but no dates for the moment

---

<div class="post-metadata">

**Author:** ![Curtis\_Paul](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/curtis_paul/32/23681_2.png) [@Curtis\_Paul](https://forum.cardano.org/u/Curtis_Paul)\
**Post date:** [29 September 2021 01:34 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/18 "2021-09-29T01:34:19Z")

</div>

Having same issue following cashew instructions.

**Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (ValueNotConservedUTxO**

So the solution is to calculate a gas fee? is the gas fee that -fee 174697 value?..and where did that number come from? Guess I’m not understanding the details of the said solution?

I scripted the tx.raw generation based on the Cashew instructions.  
Do any of you see any issues with the command execution that could be resulting in a tx.raw file that would cause that error when signed and sent?

currentSlot=$(cardano-cli query tip --mainnet | jq -r ‘.slot’)  
echo Current Slot: $currentSlot

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

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

cat balance.out

tx\_in=""  
total\_balance=0  
while read -r utxo; do  
in\_addr=$(awk ‘{ print $1 }’ \<\<\< “${utxo}”)  
idx=$(awk ‘{ print $2 }’ \<\<\< “${utxo}”)  
utxo\_balance=$(awk ‘{ print $3 }’ \<\<\< “${utxo}”)  
total\_balance=$((${total\_balance}+${utxo\_balance}))  
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}

stakePoolDeposit=$(cat $NODE\_HOME/params.json | jq -r ‘.stakePoolDeposit’)  
echo stakePoolDeposit: $stakePoolDeposit

cardano-cli transaction build-raw ${tx\_in} --tx-out $(cat payment.addr)+0 --invalid-hereafter $(( ${currentSlot} + 10000)) --fee 0 --out-file tx.tmp --certificate stake.cert

fee=$(cardano-cli transaction calculate-min-fee --tx-body-file ./tx.tmp --tx-in-count ${txcnt} --tx-out-count 1 --mainnet --witness-count 2 --byron-witness-count 0 --protocol-params-file ./params.json | awk ‘{ print $1 }’)  
echo fee: $fee

txOut=$((${total\_balance}-${stakeAddressDeposit}-${fee}))  
echo Change Output: ${txOut}

cardano-cli transaction build-raw ${tx\_in} --tx-out $(cat payment.addr)+${txOut} --invalid-hereafter $(( ${currentSlot} + 10000)) --fee ${fee} --certificate-file stake.cert --out-file tx.raw

---

<div class="post-metadata">

**Author:** ![Geoffrey\_Tipy](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/geoffrey_tipy/32/45227_2.png) [@Geoffrey\_Tipy](https://forum.cardano.org/u/Geoffrey_Tipy)\
**Post date:** [14 January 2022 09:00 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/20 "2022-01-14T09:00:06Z")

</div>

I have the same problem with the same instructions, after updating everything to 1.33.0, and going back through my scripts for the 100th time. I am stuck…  
this is the error:

```auto
Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 10000)}) (SlotNo 50581813))))])

```

and this is the tx.signed

```auto
{
    "type": "Tx AlonzoEra",
    "description": "",
    "cborHex": "84a70082825820c2a011032ff72b91a2b45f1cbce94941be06b5bcbaca12546a9ab8c8264c59c107825820e9192ef37a99f6fa392e39525c7e9cdc0d7a4be6>
}

```

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [14 January 2022 09:12 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/21 "2022-01-14T09:12:08Z")

</div>

> [@Geoffrey\_Tipy](#):
>
> after updating everything to 1.22.0

1.22.0 ? last version is 1.33.0

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [14 January 2022 09:35 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/22 "2022-01-14T09:35:12Z")

</div>

> [@Geoffrey\_Tipy](#):
>
> `OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 10000)})`

This looks like you should look at your `--invalid-hereafter` parameter. It’s saying that the transaction is only valid until slot 10000 (which is _way_ in the past).

If you used something like `--invalid-hereafter $(( ${currentSlot} + 10000))` in the post above yours, make sure that `$currentSlot` is really set to the current slot at the tip.

---

<div class="post-metadata">

**Author:** ![Geoffrey\_Tipy](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/geoffrey_tipy/32/45227_2.png) [@Geoffrey\_Tipy](https://forum.cardano.org/u/Geoffrey_Tipy)\
**Post date:** [14 January 2022 11:25 UTC](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029/23 "2022-01-14T11:25:44Z")

</div>

yes sorry, was a Typo. thanks for the catch,

[Next page](https://forum.cardano.org/t/tx-help-unable-to-send-transaction-errors/48029.md?page=2)
