# Retrieve funds sent to stake pool address

**URL:** <https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614>\
**Category:** Operate a Stake Pool\
**Created:** [5 August 2020 12:26 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614 "2020-08-05T12:26:56Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chadizzle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/chadizzle/32/20337_2.png) [@Chadizzle](https://forum.cardano.org/u/Chadizzle)\
**Post date:** [5 August 2020 12:26 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/1 "2020-08-05T12:26:56Z")

</div>

Hi All,

I am following the set up staking pool guide : [https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#7-setup-payment-and-staking-keys](https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#7-setup-payment-and-staking-keys)  
On creating my stake pool I sent funds to the address from

cat payment.addr

from this I then could not get this command to run as it said params.json not found (It is still an error )

keyDeposit=$(cat $NODE\_HOME/params.json | jq -r ‘.keyDeposit’)

echo keyDeposit: $keyDeposit

from here I re did this step

cardano-cli shelley address key-gen   
–verification-key-file payment.vkey   
–signing-key-file payment.skey

and this one

cardano-cli shelley stake-address key-gen   
–verification-key-file stake.vkey   
–signing-key-file stake.skey

WHich caused the address I originally sent the funds to to change.

How can I retrieve this firstly and secondly How can i get past the step

keyDeposit=$(cat $NODE\_HOME/params.json | jq -r ‘.keyDeposit’)

echo keyDeposit: $keyDeposit

Thanks

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [6 August 2020 02:18 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/2 "2020-08-06T02:18:45Z")

</div>

For your first question, it appears you have overwritten the private key to your address. I am afraid your funds are now lost. I would like someone else to chime in, but unless you are able to search the disk using a special tool to help find the overwritten file on disk (longshot btw), I don’t see any other solution. Hopefully someone smarter than myself might know of a solution.

Regarding the params.json missing, you will need to first generate the file:

cardano-cli shelley query protocol-parameters   
–mainnet   
–out-file params.json

Sorry about your missing funds.

---

<div class="post-metadata">

**Author:** ![Chadizzle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/chadizzle/32/20337_2.png) [@Chadizzle](https://forum.cardano.org/u/Chadizzle)\
**Post date:** [6 August 2020 07:05 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/3 "2020-08-06T07:05:43Z")

</div>

I was afraid of such, It wasn’t a massive amount but it was some. I thought there may be a way the stake pool had its own keys and it was somehow linked to that.

I didn’t think i missed a step so I had no idea, Will try it out.

Thanks a lot for your reply! Stay Safe

---

<div class="post-metadata">

**Author:** ![ATADA](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/atada/32/16409_2.png) [@ATADA](https://forum.cardano.org/u/ATADA)\
**Post date:** [6 August 2020 10:12 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/4 "2020-08-06T10:12:26Z")

</div>

please do the following after you’re created new keys. run the following command:  
`chmod 400 xxx.skey xxx.vkey`  
to protect your keys for beeing overwritten by accident!

best regards, martin

---

<div class="post-metadata">

**Author:** ![Chadizzle](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/chadizzle/32/20337_2.png) [@Chadizzle](https://forum.cardano.org/u/Chadizzle)\
**Post date:** [7 August 2020 07:23 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/5 "2020-08-07T07:23:29Z")

</div>

Thanks for this Martin!

---

<div class="post-metadata">

**Author:** ![StagDigital](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/stagdigital/32/21927_2.png) [@StagDigital](https://forum.cardano.org/u/StagDigital)\
**Post date:** [15 August 2020 23:02 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/6 "2020-08-15T23:02:15Z")

</div>

This may have been exactly what happened to us. 50k Ada sitting there, and we backed up all our keys, except our payment.vkey and payment.skey.

Trying to find if there is ANYWAY to at least keep the 50k staked for our pledge. Or without the original payment key we are SOL.

Any assist would be appreciated, and if we find anything we’ll be back here to share.

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [18 August 2020 03:58 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/7 "2020-08-18T03:58:28Z")

</div>

Hello Stag,

Do you still by chance have your stake stake.vkey and stake.skey corresponding to your payment keys/address?

You can pledge your pool if you still have these.

Your friend, FROG

---

<div class="post-metadata">

**Author:** ![StagDigital](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/stagdigital/32/21927_2.png) [@StagDigital](https://forum.cardano.org/u/StagDigital)\
**Post date:** [18 August 2020 14:47 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/8 "2020-08-18T14:47:15Z")

</div>

ADAFrog,

We are uncertain if we overwrote the the corresponding stake.vkey and stake.skey as we were retracing our steps to reconfigure the node but it is worth trying your idea.

Is there a resource for the process to pledging your pool?

Gratefully, StagDigital

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [18 August 2020 17:27 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/9 "2020-08-18T17:27:51Z")

</div>

Here is the documentation for registering a stake pool. You can use a separate payment.addr to pay for the transaction:

[https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/register\_stakepool.html](https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/register_stakepool.html)

Also, you can register an additional pledge addresses by adding another entry for --pool-owner-stake-verification-key-file:

–cold-verification-key-file cold.vkey   
–vrf-verification-key-file vrf.vkey \

> –pool-pledge   
> –pool-cost   
> –pool-margin   
> –pool-reward-account-verification-key-file stake.vkey   
> –pool-owner-stake-verification-key-file stake.vkey   
> –pool-owner-stake-verification-key-file stake2.vkey   
> –mainnet   
> –pool-relay-ipv4   
> –pool-relay-port   
> –metadata-url [https://git.io/JJWdJ](https://git.io/JJWdJ)   
> –metadata-hash   
> –out-file pool-registration.cert

---

<div class="post-metadata">

**Author:** ![spitso](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@spitso](https://forum.cardano.org/u/spitso)\
**Post date:** [31 August 2020 10:20 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/10 "2020-08-31T10:20:17Z")

</div>

Hi ADAfrog  
Your post gives me hope for a similar issue i’m having  
Would be most appreciative for any assistance if possible [Deleted Stakepool priv folder. How to recover stakepool](https://forum.cardano.org/t/deleted-stakepool-priv-folder-how-to-recover-stakepool/39527)

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [31 August 2020 10:49 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/11 "2020-08-31T10:49:12Z")

</div>

Hi Jordan - sure and my pleasure

---

<div class="post-metadata">

**Author:** ![StagDigital](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/stagdigital/32/21927_2.png) [@StagDigital](https://forum.cardano.org/u/StagDigital)\
**Post date:** [31 August 2020 18:33 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/12 "2020-08-31T18:33:48Z")

</div>

Hi Spitso,

Were you able to recover your stakepool pledge?

---

<div class="post-metadata">

**Author:** ![spitso](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@spitso](https://forum.cardano.org/u/spitso)\
**Post date:** [4 September 2020 18:25 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/13 "2020-09-04T18:25:40Z")

</div>

not yet, still working through it  
i feel the actual keys i recovered, weren’t actually the correct ones as generating a payment.addr from them, was different to the address i transfer funds too  
luckily it was only 1K. But ive taken it as a good learning experience …also as a warning to be vigilant with “deleting” keys from hot servers, as file recovery works quite well

---

<div class="post-metadata">

**Author:** ![StagDigital](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/stagdigital/32/21927_2.png) [@StagDigital](https://forum.cardano.org/u/StagDigital)\
**Post date:** [4 September 2020 20:46 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/14 "2020-09-04T20:46:38Z")

</div>

Interesting, how did you recover those keys? We want to recover our overwritten stake keys.

---

<div class="post-metadata">

**Author:** ![spitso](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@spitso](https://forum.cardano.org/u/spitso)\
**Post date:** [5 September 2020 01:30 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/15 "2020-09-05T01:30:47Z")

</div>

Soo far my advice would be stop using that machine immediately (the more you use it, the more the risk of overwriting the desired file permanently)  
Best option is to pull the HDD and connect it to a PC via HDD to USB cable… or you can leave it in the original PC just at a higher risk  
Install photorec -\> sudo apt-get install testdisk  
run photorec -\> sudo photorec  
Run through the prompts. make sure when you select your save destination, it is a completely different HDD or else you risk overwriting the data permanently. To save time, you probably can also only choose to save only txt files. As this is what the program picks the key files up as, it could be different on other peoples computers soo you also can search for all default file types if you want to be thorough  
This could take from hrs to days, depending on hardware and amount of data

Now you have a large amount of folders containing txt files with HOPEFULLY has your data  
Now you want to search through the file contents for parameters, i used a windows PC to do this with the HDD connect via USB. I downloaded a program called “UltraFileSearch” [https://www.ultrafilesearch.com/download.html](https://www.ultrafilesearch.com/download.html) which is free for 30days and has great search results  
I used the search terms “cborHex” that gave me the best results

let it run and pray  
This also can take hrs to days depending on hardware and data  
At the end it’l’ hopefully give you enough keys so that you can create any that were missing

Goodluck 😃

---

<div class="post-metadata">

**Author:** ![spitso](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@spitso](https://forum.cardano.org/u/spitso)\
**Post date:** [5 September 2020 10:56 UTC](https://forum.cardano.org/t/retrieve-funds-sent-to-stake-pool-address/37614/16 "2020-09-05T10:56:55Z")

</div>

StagDigital  
I have now been successful in retrieving my funds using my above mentioned method

Chadizzle  
Apologies you haven’t had luck. I do believe if you’ve overwritten your keys, my above method wouldn’t work
