From 492872b98740ca6db16d8f6c308a2b6b8e7d4042 Mon Sep 17 00:00:00 2001 From: Shannon Appelcline Date: Thu, 25 Jan 2018 15:56:49 -0800 Subject: [PATCH] New behavior for dumpwallet command --- 03_3_Setting_Up_Your_Wallet.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/03_3_Setting_Up_Your_Wallet.md b/03_3_Setting_Up_Your_Wallet.md index 3915ad1..f93de6e 100644 --- a/03_3_Setting_Up_Your_Wallet.md +++ b/03_3_Setting_Up_Your_Wallet.md @@ -64,7 +64,14 @@ $ bitcoin-cli importwallet backup.dat Sometimes, you might want to actually look at the private keys associated with your Bitcoin addresses. Perhaps you want to be able to sign a message or spend bitcoins from a different machine. Perhaps you just want to back up certain important private keys. -To look at _all_ the keys in your wallet, type `bitcoin-cli dumpwallet mywallet.txt`. This will create a mywallet.txt file in your current directory with a long list of private keys, addresses, and other information. Mind you, you'd never want to put this data out in a plain text file on a Bitcoin setup with real funds! +To look at _all_ the keys in your wallet, type `bitcoin-cli ~/dumpwallet mywallet.txt`. +``` +$ bitcoin-cli dumpwallet ~/mywallet.txt +{ + "filename": "/home/user1/mywallet.txt" +} +``` +This will create a mywallet.txt file in your home directory with a long list of private keys, addresses, and other information. Mind you, you'd never want to put this data out in a plain text file on a Bitcoin setup with real funds! More likely, you just want to look at the private key associated with a specific address. This can be done with the `bitcoin-cli dumpprivkey` command. ```