<p>The slot# error is because the transaction expired - the error indicates you submitted an expired transaction.</p>
<p>Use the higher fee as you did in the second tx, as well as a larger slot expiration. Set the <code>--invalid-hereafter</code> to 60000000 and let it rip!</p>

CC BY-SA 4.0
2022-03-29T21:30:00.827Z
2022-03-29T21:30:00.827Z
zhekson
<p>Your trx has <code>--fee 1679650</code></p>
<p>In the error it notes:</p>
<blockquote>
<p>FeeTooSmallUTxO (Coin 168273) (Coin 167965))</p>
</blockquote>
<p>Note (Coin 167965) is similar to the fee of 1679650. Could there be a typo somewhere?</p>
<p>Probably good to re-calc the fee amount.</p>
<p>Also, what is the balance of UTxO 2b67b1d3cbab8004f469a2a2f260738704810744350119d75079d7b6f4b1842a#0 ?</p>
<p>To match your trx outputs and fee it should be: 1,099,000,000</p>
<p>If you have 1billion exactly then change:</p>
<p><code>--tx-out $(cat payment.addr)+997320350</code> to</p>
<p><code>--tx-out $(cat payment.addr)+898320350</code> so that it balances.</p>

CC BY-SA 4.0
2022-03-25T15:16:10.027Z
I have 1000000000 lovelace + TxOutDatumNone.
phillip8
CC BY-SA 4.0
2022-03-28T20:12:27.980Z
Still doesn't work:

`cardano-cli transaction build-raw \
    
--tx-in 2b67b1d3cbab8004f469a2a2f260738704810744350119d75079d7b6f4b1842a#0 \
    
--tx-out $(cat payment2.addr)+100000000 \
    
--tx-out $(cat payment.addr)+898320350 \
    
--invalid-hereafter 53808126 \
    
--fee 167965 \
    
--out-file tx.raw`
phillip8
CC BY-SA 4.0
2022-03-28T20:18:37.973Z
It keeps mentioning 167965 even though I put the zero at the end.
phillip8
CC BY-SA 4.0
2022-03-29T00:41:01.163Z
1) Your comment notes a diff fee of '--fee 167965' - this then changes the amount for --tx-out but you did not update that value.  Your amounts have to balance eg --tx-in amount = (--tx-out amount + --tx-out amount + --fee amount) 2) Re-calculate the fee to ensure the correct amount to use eg 'cardano-cli transaction calculate-min-fee ....' 
3) You need to also increase the '--invalid-hereafter' value to beyond the latest maximum testnet slot, check the latest value here https://explorer.cardano-testnet.iohkdev.io/en.html and add about 500 to it.
MC_Brisbane - JUST Pool
CC BY-SA 4.0
2022-03-29T00:42:16.177Z
4) After doing the above can you then post the command used and error message received.

Refer to this guide to construct a simple trx:  https://developers.cardano.org/docs/stake-pool-course/handbook/create-simple-transaction/
MC_Brisbane - JUST Pool
CC BY-SA 4.0
2022-03-29T17:30:25.563Z
Please check update.
phillip8
CC BY-SA 4.0
2022-03-29T23:15:56.447Z
First let's confirm that your local node is 100% synced. Try the command `cardano-cli query tip --testnet-magic 1097911063` . Note the "syncProgress" value. Also note the 'slot' value and use that plus 10000 as your '--invalid-hereafter' value.
MC_Brisbane - JUST Pool
CC BY-SA 4.0
2022-03-29T23:48:21.677Z
What CLI version are you using? Try `cardano-cli --version` . Also, try adding `--alonzo-era` if on the latest version.
MC_Brisbane - JUST Pool
CC BY-SA 4.0
2022-03-29T23:53:08.933Z
The error still notes 'FeeTooSmallUTxO' - can you copy/paste to your question the full steps taken to calculate the fee. Too much detail is better than not enough.
MC_Brisbane - JUST Pool
CC BY-SA 4.0
2022-03-30T01:09:09.843Z
Also, remove file tx.raw to ensure it gets re-created during your steps, and copy/paste in your 'submit' command too so we can see everything that is taking place, thanks.
MC_Brisbane - JUST Pool
CC BY-SA 4.0
2022-04-30T12:56:36.727Z
I've been giving https://forum.cardano.org/t/how-to-set-up-a-pool-in-a-few-minutes-and-register-using-cntools/48767 a shot. Is there another way to get tAda outside the official faucet since it only lets you get some once a day?
phillip8
CC BY-SA 4.0
2022-05-01T10:54:47.887Z
How much tADA do you need for testing with?
If you need a heap of tADA you could ask on Cardano discord for tADA donations from people.
MC_Brisbane - JUST Pool
CC BY-SA 4.0
2022-03-25T03:39:38.567Z
2022-03-30T23:51:34.710Z
2022-03-30T23:51:34.710Z
MC_Brisbane - JUST Pool
<p>Is there anything wrong with</p>
<pre><code>cardano-cli transaction build-raw \
    --tx-in 2b67b1d3cbab8004f469a2a2f260738704810744350119d75079d7b6f4b1842a#0 \
    --tx-out $(cat payment2.addr)+100000000 \
    --tx-out $(cat payment.addr)+997320350 \
    --invalid-hereafter 53808126 \
    --fee 1679650 \
    --out-file tx.raw
</code></pre>
<p>because I'm getting</p>
<pre><code>Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (ValueNotConservedUTxO (Value 0 (fromList [])) (Value 20000000 (fromList []))))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId {_unTxId = SafeHash &quot;4e3a6e7fdcb0d0efa17bf79c13aed2b4cb9baf37fb1aa2e39553d5bd720c5c99&quot;}) 4])))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (FeeTooSmallUTxO (Coin 168273) (Coin 167965)))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 369400)}) (SlotNo 53808413))))])
</code></pre>
<p>My math might be off. I have a billion test LoveLace in that address.</p>
<p>Update:</p>
<pre><code>cardano-cli transaction build-raw \
    --tx-in 2b67b1d3cbab8004f469a2a2f260738704810744350119d75079d7b6f4b1842a#0 \
    --tx-out $(cat payment2.addr)+100000000 \
    --tx-out $(cat payment.addr)+899823103 \
    --invalid-hereafter 54208180 \
    --fee 176897 \
    --out-file tx.raw

</code></pre>
<p>still doesn't work:</p>
<pre><code>Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (FeeTooSmallUTxO (Coin 168273) (Coin 167965)))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 53808126)}) (SlotNo 54205604))))])
</code></pre>

<testnet>
Transaction submit error
# Transaction submit error

(Asked by: username_0 on 2022-03-25)

Is there anything wrong with
cardano-cli transaction build-raw \
    --tx-in 2b67b1d3cbab8004f469a2a2f260738704810744350119d75079d7b6f4b1842a#0 \
    --tx-out $(cat payment2.addr)+100000000 \
    --tx-out $(cat payment.addr)+997320350 \
    --invalid-hereafter 53808126 \
    --fee 1679650 \
    --out-file tx.raw

because I'm getting
Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (ValueNotConservedUTxO (Value 0 (fromList [])) (Value 20000000 (fromList []))))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId {_unTxId = SafeHash "4e3a6e7fdcb0d0efa17bf79c13aed2b4cb9baf37fb1aa2e39553d5bd720c5c99"}) 4])))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (FeeTooSmallUTxO (Coin 168273) (Coin 167965)))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 369400)}) (SlotNo 53808413))))])

My math might be off. I have a billion test LoveLace in that address.
Update:
cardano-cli transaction build-raw \
    --tx-in 2b67b1d3cbab8004f469a2a2f260738704810744350119d75079d7b6f4b1842a#0 \
    --tx-out $(cat payment2.addr)+100000000 \
    --tx-out $(cat payment.addr)+899823103 \
    --invalid-hereafter 54208180 \
    --fee 176897 \
    --out-file tx.raw


still doesn't work:
Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (FeeTooSmallUTxO (Coin 168273) (Coin 167965)))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 53808126)}) (SlotNo 54205604))))])

**Tags:** testnet

---

## 2 answers

### Answer by username_1 on 2022-03-29. Score: 1

The slot# error is because the transaction expired - the error indicates you submitted an expired transaction.

Use the higher fee as you did in the second tx, as well as a larger slot expiration. Set the `--invalid-hereafter` to 60000000 and let it rip!


---

### Answer by username_2 on 2022-03-25. Score: 1

Your trx has `--fee 1679650`

In the error it notes:

> FeeTooSmallUTxO (Coin 168273) (Coin 167965))

Note (Coin 167965) is similar to the fee of 1679650. Could there be a typo somewhere?

Probably good to re-calc the fee amount.

Also, what is the balance of UTxO 2b67b1d3cbab8004f469a2a2f260738704810744350119d75079d7b6f4b1842a#0 ?

To match your trx outputs and fee it should be: 1,099,000,000

If you have 1billion exactly then change:

`--tx-out $(cat payment.addr)+997320350` to

`--tx-out $(cat payment.addr)+898320350` so that it balances.

> **Comments:**
> **username_0**: I have 1000000000 lovelace + TxOutDatumNone.  
> **username_0**: Still doesn't work:  `cardano-cli transaction build-raw \      --tx-in 2b67b1d3cbab8004f469a2a2f260738704810744350119d75079d7b6f4b1842a#0 \      --tx-out $(cat payment2.addr)+100000000 \      --tx-out $(cat payment.addr)+898320350 \      --invalid-hereafter 53808126 \      --fee 167965 \      --out-file tx.raw`  
> **username_0**: It keeps mentioning 167965 even though I put the zero at the end.  
> **username_2**: 1) Your comment notes a diff fee of '--fee 167965' - this then changes the amount for --tx-out but you did not update that value.  Your amounts have to balance eg --tx-in amount = (--tx-out amount + --tx-out amount + --fee amount) 2) Re-calculate the fee to ensure the correct amount to use eg 'cardano-cli transaction calculate-min-fee ....'  3) You need to also increase the '--invalid-hereafter' value to beyond the latest maximum testnet slot, check the latest value here https://explorer.cardano-testnet.iohkdev.io/en.html and add about 500 to it.  
> **username_2**: 4) After doing the above can you then post the command used and error message received.  Refer to this guide to construct a simple trx:  https://developers.cardano.org/docs/stake-pool-course/handbook/create-simple-transaction/  
> **username_0**: Please check update.  
> **username_2**: First let's confirm that your local node is 100% synced. Try the command `cardano-cli query tip --testnet-magic 1097911063` . Note the "syncProgress" value. Also note the 'slot' value and use that plus 10000 as your '--invalid-hereafter' value.  
> **username_2**: What CLI version are you using? Try `cardano-cli --version` . Also, try adding `--alonzo-era` if on the latest version.  
> **username_2**: The error still notes 'FeeTooSmallUTxO' - can you copy/paste to your question the full steps taken to calculate the fee. Too much detail is better than not enough.  
> **username_2**: Also, remove file tx.raw to ensure it gets re-created during your steps, and copy/paste in your 'submit' command too so we can see everything that is taking place, thanks.  
> **username_0**: I've been giving https://forum.cardano.org/t/how-to-set-up-a-pool-in-a-few-minutes-and-register-using-cntools/48767 a shot. Is there another way to get tAda outside the official faucet since it only lets you get some once a day?  
> **username_2**: How much tADA do you need for testing with? If you need a heap of tADA you could ask on Cardano discord for tADA donations from people.  

---

