# Lost funds using smart contact?

**URL:** <https://forum.openzeppelin.com/t/lost-funds-using-smart-contact/39523>\
**Category:** Smart Contracts\
**Tags:** etherscan-verify\
**Created:** [February 11, 2024, 7:30pm UTC](https://forum.openzeppelin.com/t/lost-funds-using-smart-contact/39523 "2024-02-11T19:30:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oclerc2](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@oclerc2](https://forum.openzeppelin.com/u/oclerc2)\
**Post date:** [February 11, 2024, 7:30pm UTC](https://forum.openzeppelin.com/t/lost-funds-using-smart-contact/39523/1 "2024-02-11T19:30:08Z")

</div>

Hi.  
I used the following smart contrat code in Remix: [Copy Page | BdDXnB (copycode-paste.com)](https://copycode-paste.com/raw/BdDXnB).  
I sent 0.5 ETH to the following contract: 0x51Dc6b071564FB058cbdC1F369fCc6ed58A7235c  
However, the funds were sent from my Metamask wallet, but the balance always shows 0 on etherscan. I can see that that the funds were sent to another address through an internal transaction.  
Now, I'm unable to get my funds back from this address.  
Any idea how to do it and recover my funds back to my Metamask wallet?

---

<div class="post-metadata">

**Author:** ![barakman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/barakman/32/855_2.png) [@barakman](https://forum.openzeppelin.com/u/barakman)\
**Post date:** [February 11, 2024, 8:05pm UTC](https://forum.openzeppelin.com/t/lost-funds-using-smart-contact/39523/2 "2024-02-11T20:05:26Z")

</div>

> [@oclerc2](#):
>
> 0x51Dc6b071564FB058cbdC1F369fCc6ed58A7235c

There are currently only 6 transactions sent to [that contract](https://etherscan.io/address/0x51Dc6b071564FB058cbdC1F369fCc6ed58A7235c):

 ![image](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/3X/4/9/4956eadbcd5565526f1aa300e8c327928b46852c.png)

Only 3 of these 6 transactions include ETH in them (approximately 0.491 ETH in each one of them).

Only 1 of these 3 transactions has [completed successfully](https://etherscan.io/tx/0x28d140f8c4a6f892c8bf2bab8233e0995d13bc06354e5842f25fae5000f65894):

 ![image](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/3X/c/a/cacc67d10de0866a19ed977b2a78f077455defd0.png)

And as you can see, that same amount of ETH was immediately transferred to [wallet 0xa1b6b...b1F6B](https://etherscan.io/address/0xa1b6b65e825d32838987f840a291a6cf4aab1f6b).

---

<div class="post-metadata">

**Author:** ![oclerc2](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@oclerc2](https://forum.openzeppelin.com/u/oclerc2)\
**Post date:** [February 11, 2024, 8:57pm UTC](https://forum.openzeppelin.com/t/lost-funds-using-smart-contact/39523/3 "2024-02-11T20:57:44Z")

</div>

Thanks for the answer. But is there any way to get the funds back from wallet [b1F6B] to the contact A7235c?

---

<div class="post-metadata">

**Author:** ![barakman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/barakman/32/855_2.png) [@barakman](https://forum.openzeppelin.com/u/barakman)\
**Post date:** [February 11, 2024, 9:01pm UTC](https://forum.openzeppelin.com/t/lost-funds-using-smart-contact/39523/4 "2024-02-11T21:01:27Z")

</div>

Of course, if you have the private key of this wallet, then you can do that.
