# Get wallet private key from Onchain Attestation

**URL:** <https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164>\
**Category:** Backup / Restore / Import\
**Created:** [February 8, 2025, 8:05pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164 "2025-02-08T20:05:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![NSB74](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NSB74](https://community.metamask.com/u/NSB74)\
**Post date:** [February 8, 2025, 8:05pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/1 "2025-02-08T20:05:13Z")

</div>

I have my 2 wallets verified with onchain attestation, I can only import one of them to Metamaks now, although I used to be able to access both on the same seed phrase? I have found the private key for one of them, but not the other. Is there anyway to get it from an onchain attestation?

---

<div class="post-metadata">

**Author:** ![KBeeTheCapybara](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/kbeethecapybara/32/18901_2.png) [@KBeeTheCapybara](https://community.metamask.com/u/KBeeTheCapybara)\
**Post date:** [February 8, 2025, 8:06pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/2 "2025-02-08T20:06:39Z")

</div>

Have you tried to access via Secret Recovery Phrase, and add all the accounts you want to access then grab private keys from there? This shows how to export a private key;

> **[How to export an account's private key | MetaMask Help Center](https://support.metamask.io/configure/accounts/how-to-export-an-accounts-private-key/)**
>
> Want to import your MetaMask wallet into a different wallet? Here's how to do it safely.

---

<div class="post-metadata">

**Author:** ![NSB74](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NSB74](https://community.metamask.com/u/NSB74)\
**Post date:** [February 9, 2025, 11:55am UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/3 "2025-02-09T11:55:51Z")

</div>

Hi yes several times I have tried and found the file which it accepts, but it always says invalid password? I have also tried forking the github repository and I don’t really understand what I am doing

---

<div class="post-metadata">

**Author:** ![Coffee7643](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/coffee7643/32/36480_2.png) [@Coffee7643](https://community.metamask.com/u/Coffee7643)\
**Post date:** [February 9, 2025, 12:08pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/4 "2025-02-09T12:08:13Z")

</div>

Hi @NSB74, to access an account in MetaMask there’s pretty much 2 ways to go about it.  
First way would be to have the wallet on the Secret Recovery Phrase where that specific was created under. (accounts created using the Add account \> Add a new Ethereum account are derived from the Secret Recovery Phrase the wallet is on at that time) If the account was created this way then just doing the Add a new Ethereum account should display that account at some points as they always show up in the same order so if you were looking for the 5th derived account you’d need to do Add a new Ethereum account 4 times.  
The second way you can access an account is if you’re importing the account using that specific account’s private key/ JSON file.

This is a great place to get a refresh on your knowledge or learn more about how MetaMask works: [https://learn.metamask.io/](https://learn.metamask.io/)

---

<div class="post-metadata">

**Author:** ![NSB74](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NSB74](https://community.metamask.com/u/NSB74)\
**Post date:** [February 9, 2025, 12:12pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/5 "2025-02-09T12:12:14Z")

</div>

Hi I have tried that the seed phrase doesn’t bring the original address up, I can’t find the Private key and when I try to use the tool it keeps saying my password is invalid. I have added more accounts up to 30! still doesn’t bring the wallet address I am looking for up?

---

<div class="post-metadata">

**Author:** ![Coffee7643](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/coffee7643/32/36480_2.png) [@Coffee7643](https://community.metamask.com/u/Coffee7643)\
**Post date:** [February 9, 2025, 12:16pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/6 "2025-02-09T12:16:05Z")

</div>

What tool are you using? The vault decryptor by any chance? If yes that’s not the intended use for that tool, you can try to use that when you lose your Secret Recovery Phrase, but from what you’re saying you have the Secret Recovery Phrase. In your situation either that account is under a different Secret Recovery Phrase and you need that Secret Recovery Phrase to access the account or you need the private key, I’m afraid there’s no other options.

---

<div class="post-metadata">

**Author:** ![NSB74](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NSB74](https://community.metamask.com/u/NSB74)\
**Post date:** [February 9, 2025, 1:55pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/7 "2025-02-09T13:55:02Z")

</div>

OK even though I have all the json logs and encrypted data and vault from chrome?

---

<div class="post-metadata">

**Author:** ![Coffee7643](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/coffee7643/32/36480_2.png) [@Coffee7643](https://community.metamask.com/u/Coffee7643)\
**Post date:** [February 9, 2025, 1:57pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/8 "2025-02-09T13:57:13Z")

</div>

If the vault decryptor tells you the password is incorrect when trying to use it the password you’re trying to use is incorrect.

---

<div class="post-metadata">

**Author:** ![NSB74](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NSB74](https://community.metamask.com/u/NSB74)\
**Post date:** [February 9, 2025, 2:01pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/9 "2025-02-09T14:01:41Z")

</div>

It isn’t as I use the same password to get into the app on my phone and the google extension? So how would that work if it was the wrong password?

---

<div class="post-metadata">

**Author:** ![Coffee7643](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/coffee7643/32/36480_2.png) [@Coffee7643](https://community.metamask.com/u/Coffee7643)\
**Post date:** [February 9, 2025, 2:05pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/10 "2025-02-09T14:05:58Z")

</div>

Passwords are local, you can have 3 different passwords for the same wallet on mobile and on 2 different PCs/ Laptops. When you use that vault decryptor you need to use the exact password you used for that specific wallet on that specific browser.

---

<div class="post-metadata">

**Author:** ![NSB74](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NSB74](https://community.metamask.com/u/NSB74)\
**Post date:** [February 9, 2025, 2:07pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/11 "2025-02-09T14:07:21Z")

</div>

I use the same one or I would forget it, but I will try some others then. Could it be the password for the laptop rather than MetaMask?

---

<div class="post-metadata">

**Author:** ![Coffee7643](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/coffee7643/32/36480_2.png) [@Coffee7643](https://community.metamask.com/u/Coffee7643)\
**Post date:** [February 9, 2025, 2:09pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/12 "2025-02-09T14:09:46Z")

</div>

It does not work like that, only if you used the laptop password for the wallet but otherwise no. [How to recover your Secret Recovery Phrase | MetaMask Help Center](https://support.metamask.io/configure/wallet/how-to-recover-your-secret-recovery-phrase/) \< This article is a guide for the vault extraction, please read it entirely and the note from the article too. Always be careful who and what you interact with online and always do your own research before doing anything

---

<div class="post-metadata">

**Author:** ![NSB74](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NSB74](https://community.metamask.com/u/NSB74)\
**Post date:** [February 9, 2025, 5:09pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/13 "2025-02-09T17:09:28Z")

</div>

I’ve tried it again and again and cannot get it to recognise any of my passwords. I have the exact extension vault data and have tried both uploading and pasting it. I just don’t know what else to try sadly.

---

<div class="post-metadata">

**Author:** ![Coffee7643](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/coffee7643/32/36480_2.png) [@Coffee7643](https://community.metamask.com/u/Coffee7643)\
**Post date:** [February 10, 2025, 7:06am UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/14 "2025-02-10T07:06:38Z")

</div>

You can try to reach out to the MetaMask Support team about this so they can take a more in depth look into the issue here: [https://support.metamask.io/](https://support.metamask.io/) and click “Start a Conversation.”

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/metamask/original/3X/3/8/3812168020a49f264784b1dbfcf12435abbb09ad.png) [@system](https://community.metamask.com/u/system)\
**Post date:** [March 10, 2025, 8:05pm UTC](https://community.metamask.com/t/get-wallet-private-key-from-onchain-attestation/30164/15 "2025-03-10T20:05:48Z")

</div>

Closed on March 10, 2025, 8:05pm UTC

This topic was automatically closed after 30 days. New replies are no longer allowed.
