Dump all bitcoin private keys

I have used this script to export all private keys in a wallet. The blockchain does not have to be synced, but the wallet obviously has to be unlocked (with walletpassphrase).

No warranty.

Raw
#!/usr/bin/env bash

while read -r address; do
  echo $address
  bitcoin-cli dumpprivkey $address
done < <(bitcoin-cli listaddressgroupings | grep -E '[13][a-zA-Z0-9]{27,34}' --only-matching --color=never)
Published on Jan. 9, 2015 by Nicolas and tagged Bitcoin. You can follow the discussion with the comment feed for this post. Feeling generous? Donate!

2 comments

  1. avatar
    wrote this comment on
    Generic Doxycycline Pills https://apcialisle.com/# - Cialis Viagra Cialis Assunzione <a href=https://apcialisle.com/#>can i buy cialis online</a> Cold Medicine And Amoxicillin
  2. avatar
    wrote this comment on
    Prednisone For Poison Ivy For Sale https://apcialisle.com/# - Cialis Clomid Mode D'Action <a href=https://apcialisle.com/#>Cialis</a> Pediatric Zithromax Dose

Start a new thread

Cancel reply
Markdown. Syntax highlighting with <code lang="php"><?php echo "Hello, world!"; ?></code> etc.