<p>now you can use <code>bitcoin-cli dumpwallet</code> command to export all your privkeys</p>

CC BY-SA 3.0
2017-09-02T11:26:02.530Z
2017-09-02T11:26:02.530Z
cifer
<p>You can get all of this info from the bitcoind API.
you download bitcoind, set your RPC configurations into your .conf and then connect via RPC</p>

<p><a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list" rel="nofollow">https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list</a></p>

<p><a href="http://paste.ee/p/IBU79" rel="nofollow">http://paste.ee/p/IBU79</a></p>

<p>The same applies for all the coins really. Most just copy the bitcoin or litecoin source. Many of the features are the same,</p>

CC BY-SA 3.0
2014-10-28T08:26:37.020Z
2014-10-28T08:26:37.020Z
bro
<p>I would suggest keeping backup copies of all the data you have, and not give up on the idea that you will <em>eventually</em> be able to extract the private keys from that data, even if you can't find a program that works right now.</p>

<p>Presumably you have records of when your computer generated blocks. You should be able to find matching records from the public blockchain site (if there is one) for your altcoin. Your question suggests that your wallet software thinks the blocks are orphans, which is a bad sign. I wouldn't trust that yet. If the blockchain site shows orphan blocks, and you find your blocks listed there as orphans, then probably there is no hope. If you find the blocks listed as part of the official chain, then you can get the public address the mining fees were paid to from that.</p>

<p>Someone, maybe only the developer of the coin, knows how to find the matching private keys in your wallet. If you cannot find a solution yourself, wait and see if the value of the coins becomes high enough to hire professional help. In the meantime, you can look at the bitcoin code and possibly at the changes made to produce binarycoin, and probably you can figure out how to extract the private keys from the original wallet.dat file, the wallet.bak file, or earlier backups of these which contain your blocks.</p>

<p>I wish you the best. Unfortunately some have to learn the hard way that there is a reason for paying banks to secure our money.</p>

CC BY-SA 3.0
2014-10-28T23:25:30.940Z
2014-10-28T23:25:30.940Z
Bit Chaser
<p>I'm on <a href="https://cryptocointalk.com/topic/2432-binarycoin-bic-information/" rel="noreferrer">binarycoin</a> now, with solo mining. Luck smile to me. I'm found 5 blocks. It is 100.0 binarycoins.</p>

<p>I'm trying to use "aggressive" speed-up, my daemon compiled with <code>-O3</code>. </p>

<p>After last block I caught crash of daemon. And fails of relaunching with err: </p>

<pre><code>Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment 
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery 
wallet.dat: unable to flush page: 19 
txn_checkpoint: failed to flush the buffer cache: DB_RUNRECOVERY: Fatal error, run database recovery 
</code></pre>

<p>If I'm redownload the blockchain.</p>

<p><code>-rescan</code> doesn't help.</p>

<p>I'm shutdown the network, clean everything in the .binarycoin/* except <code>wallet.dat</code> and <code>binarycoin.conf</code>. Launch the daemon. My <code>wallet.dat</code> remembered that there were blocks, every block was marked as <code>orphan</code>. I've start to sniffing for my coins. My account named as <code>""</code> contain only one address. I've found a web-blockchain  www.binarycoin.info:8080/ 
There was no my address. </p>

<p>By <code>tx ids</code> in my <code>wallet.dat</code>, on this web-blockchain I've found addresses that received the bounties. I've dumped privkeys of this addresses, and cooled down.</p>

<hr>

<p>My nerve continue playing. What if there is no side web-blockchain. How should I discovery the <code>tx ids</code> and thereafter <code>my addresses</code>, and thereafter dump my <code>privkeys</code>?</p>

<p>There is no option to get every address from <code>wallet.dat</code>, only one (default) address.</p>

<p>I found <a href="https://github.com/joric/pywallet" rel="noreferrer">pywallet</a>. It is for <code>Bitcoin</code>. Nevertheless, I've dump in plain-text my <code>wallet.dat</code>. 117 addresses with their privkeys. </p>

<p>I compare my <code>real addresses</code> with this 117. No one.</p>

<p>I compare <code>privkeys</code>. No one.</p>

<p>How to trully extract all addresses and all <code>privkeys</code> that wallet.dat contains? 
( Specially for alt-coins )</p>

<private-key><wallet.dat><solo-mining><altcoin>
How to dump all of addresses from wallet.dat for other alt-coins?
user2496
# How to dump all of addresses from wallet.dat for other alt-coins?

(Asked by: username_0 on 2014-02-05)

I'm on [binarycoin](https://cryptocointalk.com/topic/2432-binarycoin-bic-information/) now, with solo mining. Luck smile to me. I'm found 5 blocks. It is 100.0 binarycoins.

I'm trying to use "aggressive" speed-up, my daemon compiled with `-O3`.

After last block I caught crash of daemon. And fails of relaunching with err:

```
Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment 
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery 
wallet.dat: unable to flush page: 19 
txn_checkpoint: failed to flush the buffer cache: DB_RUNRECOVERY: Fatal error, run database recovery 

```

If I'm redownload the blockchain.

`-rescan` doesn't help.

I'm shutdown the network, clean everything in the .binarycoin/\* except `wallet.dat` and `binarycoin.conf`. Launch the daemon. My `wallet.dat` remembered that there were blocks, every block was marked as `orphan`. I've start to sniffing for my coins. My account named as `""` contain only one address. I've found a web-blockchain www.binarycoin.info:8080/
There was no my address.

By `tx ids` in my `wallet.dat`, on this web-blockchain I've found addresses that received the bounties. I've dumped privkeys of this addresses, and cooled down.

---

My nerve continue playing. What if there is no side web-blockchain. How should I discovery the `tx ids` and thereafter `my addresses`, and thereafter dump my `privkeys`?

There is no option to get every address from `wallet.dat`, only one (default) address.

I found [pywallet](https://github.com/joric/pywallet). It is for `Bitcoin`. Nevertheless, I've dump in plain-text my `wallet.dat`. 117 addresses with their privkeys.

I compare my `real addresses` with this 117. No one.

I compare `privkeys`. No one.

How to trully extract all addresses and all `privkeys` that wallet.dat contains?
( Specially for alt-coins )

**Tags:** private-key, wallet.dat, solo-mining, altcoin


---

## 3 answers

### Answer by username_1 on 2017-09-02. Score: 4

now you can use `bitcoin-cli dumpwallet` command to export all your privkeys


---

### Answer by username_2 on 2014-10-28. Score: 2

You can get all of this info from the bitcoind API.
you download bitcoind, set your RPC configurations into your .conf and then connect via RPC

<https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list>

<http://paste.ee/p/IBU79>

The same applies for all the coins really. Most just copy the bitcoin or litecoin source. Many of the features are the same,


---

### Answer by username_3 on 2014-10-28. Score: 0

I would suggest keeping backup copies of all the data you have, and not give up on the idea that you will *eventually* be able to extract the private keys from that data, even if you can't find a program that works right now.

Presumably you have records of when your computer generated blocks. You should be able to find matching records from the public blockchain site (if there is one) for your altcoin. Your question suggests that your wallet software thinks the blocks are orphans, which is a bad sign. I wouldn't trust that yet. If the blockchain site shows orphan blocks, and you find your blocks listed there as orphans, then probably there is no hope. If you find the blocks listed as part of the official chain, then you can get the public address the mining fees were paid to from that.

Someone, maybe only the developer of the coin, knows how to find the matching private keys in your wallet. If you cannot find a solution yourself, wait and see if the value of the coins becomes high enough to hire professional help. In the meantime, you can look at the bitcoin code and possibly at the changes made to produce binarycoin, and probably you can figure out how to extract the private keys from the original wallet.dat file, the wallet.bak file, or earlier backups of these which contain your blocks.

I wish you the best. Unfortunately some have to learn the hard way that there is a reason for paying banks to secure our money.


---

