No deposit returned after retiring the pool

I manage to retire the pool, as I understand the deposit will be returned to my rewards account, so I followed coincashew tutorial on how to claim your rewards

After running this command where I get my balance, I see this: Total ADA balance: 0

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

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

cat balance.out

while read -r utxo; do
    in_addr=$(awk '{ print $1 }' <<< "${utxo}")
    idx=$(awk '{ print $2 }' <<< "${utxo}")
    utxo_balance=$(awk '{ print $3 }' <<< "${utxo}")
    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}

withdrawalString="$(cat stake.addr)+${rewardBalance}"

Can you please let me know why am I not seeing the deposit returned anywhere?

Here you can see my pool has been retired:

you will need to wait 2 epochs saying something else ;), the 500 ADA are waiting for you to be withdrawn…

1 Like

Yes seems the pool already deregistered yesterday and deposit is part of the rewards :slight_smile:

Oh Thank you guys!

I’m just trying to claim the reward and I get this message when running this command:

cat: stake.addr: No such file or directory

rewardBalance=$(cardano-cli query stake-address-info \
    --mainnet \
    --address $(cat stake.addr) | jq -r ".[0].rewardAccountBalance")
echo rewardBalance: $rewardBalance

How can I get this file? I cant see it on the folder

Screen Shot 2021-10-13 at 10.25.02

you should have this file it was generated when you created the wallet, check the bkp files… perhaps you stored them there…

I also don’t see your payment private key (payment.skey). Maybe you are storing the private keys somewhere else?

If you can find the stake verification key, you can always regenerate the stake address:

cardano-cli stake-address build \
    --stake-verification-key-file stake.vkey \
    --out-file stake-address-regenerated.addr \