Thanks, ill check that and report back.
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
Good that you solved it!
Strange. In bash
and sh
it seems to work with spaces:
$ currentSlot=50000000
$ echo $(( ${currentSlot} + 10000 ))
50010000
Which shell do you use?
xterm with zsh. so not sure if anything odd.
Works with zsh
, here, also:
leeloo% currentSlot=50000000
leeloo% echo $(( ${currentSlot} + 10000 ))
50010000
Since it’s solved for you for now, probably nothing to worry about, but perhaps keep in mind, in case something like that comes along again.
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.
ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (ValueNotConservedUTxO (Value 60013563730 (fromList [(PolicyID {policyID = ScriptHash “f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a”},fromList [(62726577,1)])])) (Value 60013563730 (fromList )))))])
Total ADA balance: 60013563730
fee: 204661
txOut: 60013359069
You have an NFT on one of the UTxOs of that address. The usual copy and paste scripts cannot deal with NFTs and other native tokens.
You will have to craft a transaction sending it away by hand.
That’s exactly what it is. I recently sent the SPO ada handle to the wallet. Is there a document to do so manually?
This could maybe help: https://developers.cardano.org/docs/native-tokens/minting#sending-token-to-a-wallet
(Although it uses build-raw
, while build
is much easier.)
I have described it for another user, here: https://forum.cardano.org/t/transaction-submit-error-fails-to-send/106340/13?u=heptasean
Thank you, your answer to the other user helped.
In case anyone else runs into this issue, here’s what I did. (I know there is a better method)
The issue is there’s an NFT in the pledge wallet, in my case its the Ada Handle for SPOs.
From the Coincashew Guide:
Updating Stake Pool Information - CoinCashew
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}
Build the Transaction
cardano-cli transaction build-raw \
--tx-in (from above)
--tx-in (from above)
--tx-out $(cat payment.addr)+${txOut} \
--invalid-hereafter $((${currentSlot}+10000)) \
--fee ${fee} \
--certificate-file pool.cert \
--certificate-file deleg.cert \
--out-file tx.raw
Complete the steps for signing & submitting.
I know there’s an easier way to do this, but for now, this is what I did to submit the transaction.