Mist: how to view private key of an account

Ethereum Asked by Webeng on December 12, 2020


How do I use Mist to extract the Raw private key of an account. The account is password protected (if that makes a difference I don’t know).


  • I made an account with mist that has a a password associated to it
  • I already backed up the JSON file which can be used to import the account into another mist wallet

What I want however is the RAW private key. I understand I don’t need it since I have the JSON file, though I still want to at least know how to get it if I do want it.

Ideally there would be some easy UI option in Mist, though I recognize that there might be a geth command as well. All help is really appreciated.

One Answer

just a few hours ago i tried to find an easy solution. the python way is not extremely easy but easy enough.

you can use

from import w3
with open('~/.ethereum/keystore/UTC--...--5ce9454909639D2D17A3F753ce7d93fa0b9aB12E') as keyfile:
    encrypted_key =
    private_key = w3.eth.account.decrypt(encrypted_key, 'correcthorsebatterystaple')
    # tip: do not save the key or password anywhere, especially into a shared source file

in mist go to file->backup->accounts
to copy paste the location of the keyfile

note for windows:
installing on windows can be a bit tricky i suggest using precompiled whls for lru_cache and cytoolz

Answered by swisswiss on December 12, 2020

Add your own answers!

Related Questions

why web3.eth.getBlockNumber().then(console.log) returns 0

2  Asked on December 9, 2020 by shifted-five


Does getPastLogs require arvhived parity node?

1  Asked on December 6, 2020 by miao-zhicheng


Solidity & truffle: get elements from strings array

2  Asked on December 5, 2020 by paulo-n-carrillo-pea


Typechain and Batch Requests

0  Asked on December 2, 2020 by slider


Unhandled Rejection (TypeError): this.web3.eth is undefined

2  Asked on November 29, 2020 by chan-austin


Synchronizing test and web3 enabled nodejs service

1  Asked on November 26, 2020 by zach_is_my_name


getting the latest holders address:balance for a smart contract

1  Asked on November 21, 2020 by lucas-rodriguez-benitez


Token migration and IDEX smart contract problem

1  Asked on November 21, 2020 by crypto-lemma


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP