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.
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
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:
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.
yes that was a great clue to the problem I had, in the Coincashew guide, they have the same line as you. but I found I needed to remove the space on both sides of the + to make the calculation correct, weird, but did solve it after a little bit of testing, Thanks
I also used the CoinCashew guide.
Deleting the spaces around the plus sign also solve this error for me. --invalid-hereafter $(( ${currentSlot}+10000)) \
Thank you
Hello, I’m getting this error trying to update the pledge. I have used this script multiple times to update the pool info. I have enough ADA in my payment address.
After querying the utxo balance, cat balance.out
You will notice one of the utxos has a policy ID. Calculate the total balance - the utxo with the policy ID.
Invalid hereafter
cardano-cli transaction build-raw \
${tx_in} \ -------- here you will manually enter (or create a variable) for the utxos from the balance.out file - the nft utxo (In my case I had two --tx-ins)
--tx-in (utxo hash#) \
--tx-in (utxo hash#) \
--tx-out $(cat payment.addr)+${total_balance} \
--invalid-hereafter $((${currentSlot}+10000)) \
--fee 0 \
--certificate-file pool.cert \
--certificate-file deleg.cert \
--out-file tx.tmp
Calculate Minimum Fee
fee=$(cardano-cli transaction calculate-min-fee \
--tx-body-file tx.tmp \
--tx-in-count ${txcnt} \ For ${txcnt}, enter the number of utxos - nft utxo
--tx-out-count 1 \
--mainnet \
--witness-count 3 \
--byron-witness-count 0 \
--protocol-params-file params.json | awk '{ print $1 }')
echo fee: $fee
Change Output
txOut=$((total utxo calculation from above-${fee}))
echo txOut: ${txOut}