# Increasing Pledge

**URL:** <https://forum.cardano.org/t/increasing-pledge/93650>\
**Category:** Community Technical Support\
**Created:** [24 January 2022 17:07 UTC](https://forum.cardano.org/t/increasing-pledge/93650 "2022-01-24T17:07:41Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![stake-crypto-pool](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@stake-crypto-pool](https://forum.cardano.org/u/stake-crypto-pool)\
**Post date:** [24 January 2022 17:07 UTC](https://forum.cardano.org/t/increasing-pledge/93650/1 "2022-01-24T17:07:41Z")

</div>

Can anyone help me out with the following error :-

Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (ValueNotConservedUTxO (Value 0 (fromList )) (Value 105624822 (fromList ))))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId {\_unTxId = SafeHash “336a0ffa7159ebb6bb3ecb68deaf5d264258723124bbe356ae0feb9d22142d26”}) 0,TxInCompact (TxId {\_unTxId = SafeHash “50740e88c6f41b13bc5a49529a4298dace61a3f355bce159072079469299608c”}) 0,TxInCompact (TxId {\_unTxId = SafeHash “5415f7df9e1f6da44fc1c6c5bed49d96f4fb4778208fe0b14d8f4ab0a1092e38”}) 0,TxInCompact (TxId {\_unTxId = SafeHash “7fac3344e33fc8ef4dd3a1e9e64a967686d5ab83a300a025d3156086ecdabf43”}) 0,TxInCompact (TxId {\_unTxId = SafeHash “c3ed95303b197209675f78f1b2e2cf93341055062252bb94879d95fb5ad32e1f”}) 0,TxInCompact (TxId {\_unTxId = SafeHash “fd4b6f5c462cbb4802f09489451071e21034c02f8cff56ce3a622b4606fa89a8”}) 0])))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 49224844)}) (SlotNo 51477524))))])

I am trying to increase my pledge amount on node 1.33.0 using the coin cashew operational guide but keep coming up against the above error.

---

<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:** [24 January 2022 18:06 UTC](https://forum.cardano.org/t/increasing-pledge/93650/2 "2022-01-24T18:06:31Z")

</div>

It seems the transaction expired … try to set a high ttl time

```auto

--invalid-hereafter $(( ${currentSlot} + 10000)) \

```

increase to 20000 or 30000

---

<div class="post-metadata">

**Author:** ![stake-crypto-pool](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@stake-crypto-pool](https://forum.cardano.org/u/stake-crypto-pool)\
**Post date:** [24 January 2022 19:14 UTC](https://forum.cardano.org/t/increasing-pledge/93650/3 "2022-01-24T19:14:04Z")

</div>

Still getting same issue, interestingly enough though “invalidHereafter = SJust (SlotNo 49224844)” never changes regardless of what value I use and obviously we are far past this block.

---

<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:** [24 January 2022 19:18 UTC](https://forum.cardano.org/t/increasing-pledge/93650/4 "2022-01-24T19:18:18Z")

</div>

> [@stake-crypto-pool](#):
>
> interestingly enough though “invalidHereafter = SJust (SlotNo 49224844)” never changes

Are you sure you are signing/submitting the right file and not the one before fee and invalid-hereafter calculation?

---

<div class="post-metadata">

**Author:** ![stake-crypto-pool](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@stake-crypto-pool](https://forum.cardano.org/u/stake-crypto-pool)\
**Post date:** [24 January 2022 19:22 UTC](https://forum.cardano.org/t/increasing-pledge/93650/5 "2022-01-24T19:22:42Z")

</div>

Yup running through the Coin cashew guide [Changing the pledge, fee, margin, etc.](https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node/18.-operational-and-maintenance-tips#18.4-changing-the-pledge-fee-margin-etc.)

and definitely signing the tx.raw and submitting the tx.signed

---

<div class="post-metadata">

**Author:** ![stake-crypto-pool](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@stake-crypto-pool](https://forum.cardano.org/u/stake-crypto-pool)\
**Post date:** [24 January 2022 19:26 UTC](https://forum.cardano.org/t/increasing-pledge/93650/6 "2022-01-24T19:26:06Z")

</div>

do you think deleting the db would rectify as always stuck at block 49224844?

---

<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:** [24 January 2022 19:27 UTC](https://forum.cardano.org/t/increasing-pledge/93650/7 "2022-01-24T19:27:26Z")

</div>

> [@stake-crypto-pool](#):
>
> definitely signing the tx.raw and submitting the tx.signed

Okay. And you are recalculating `$currentSlot`?

> [@stake-crypto-pool](#):
>
> do you think deleting the db would rectify as always stuck at block 49224844?

Bit drastic. You could first try `cardano-cli query tip --mainnet` to see if it is fully synced and really at the current slot.

---

<div class="post-metadata">

**Author:** ![stake-crypto-pool](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@stake-crypto-pool](https://forum.cardano.org/u/stake-crypto-pool)\
**Post date:** [24 January 2022 19:28 UTC](https://forum.cardano.org/t/increasing-pledge/93650/8 "2022-01-24T19:28:16Z")

</div>

> [@HeptaSean](#):
>
> cardano-cli query tip --mainnet

Yup

```
"era": "Alonzo",
"syncProgress": "100.00",
"hash": "72c9dfd71ab0cc2964c468446ab48457b0b51904e6641d19d2f2d0d30b9a828e",
"epoch": 316,
"slot": 51486177,
"block": 6796907

```

---

<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:** [24 January 2022 19:34 UTC](https://forum.cardano.org/t/increasing-pledge/93650/9 "2022-01-24T19:34:18Z")

</div>

> [@stake-crypto-pool](#):
>
> Yup

Then, deleting the database won’t help you much besides a lot of waiting and relaxing, until it is synced again.

If you are really doing `currentSlot=$(cardano-cli query tip --mainnet | jq -r '.slot')` and then `--invalid-hereafter $(( ${currentSlot} + 10000))`, it cannot possibly stay at 49224844.

---

<div class="post-metadata">

**Author:** ![stake-crypto-pool](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@stake-crypto-pool](https://forum.cardano.org/u/stake-crypto-pool)\
**Post date:** [24 January 2022 19:38 UTC](https://forum.cardano.org/t/increasing-pledge/93650/10 "2022-01-24T19:38:25Z")

</div>

> [@stake-crypto-pool](#):
>
> `": `

yeah running following commands:-

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}

cardano-cli transaction build-raw   
${tx\_in}   
–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

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

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

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

in that exact same order and tried changing invalid-hereafter value from +10000 to +100000 still get error message.

---

<div class="post-metadata">

**Author:** ![stake-crypto-pool](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@stake-crypto-pool](https://forum.cardano.org/u/stake-crypto-pool)\
**Post date:** [24 January 2022 19:41 UTC](https://forum.cardano.org/t/increasing-pledge/93650/11 "2022-01-24T19:41:30Z")

</div>

have even deleted params.json tx.raw.tx.tmp & tx.signed on BP to ensure the files have definitely been overwritten.

---

<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:** [24 January 2022 20:10 UTC](https://forum.cardano.org/t/increasing-pledge/93650/12 "2022-01-24T20:10:32Z")

</div>

> [@stake-crypto-pool](#):
>
> yeah running following commands:-

That all looks totally plausible.

The `echo`s in between also give good values?

I’m out of ideas except some mix-up of the files.

Perhaps on transport between BP and cold wallet machine? Have you done `ls -l` on the steps of the way to see if they are freshly generated or maybe old? Some permission thing so that they cannot be overwritten on the USB stick used to transport?

---

<div class="post-metadata">

**Author:** ![stake-crypto-pool](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@stake-crypto-pool](https://forum.cardano.org/u/stake-crypto-pool)\
**Post date:** [24 January 2022 20:30 UTC](https://forum.cardano.org/t/increasing-pledge/93650/13 "2022-01-24T20:30:15Z")

</div>

Thank you.

You resolved it for me. 😆

For some reason Ubuntu wasn’t overwriting the file kept defaulting back to previous version, so had to delete it on the airgap machine.
