user153: I know that PyWallet has a -dumpwallet but without using pywallet, how can I export all the addresses and privatekeys with the stock bitcoind?
Is there an API command that lists all addresses held by the wallet?

user91071: Just go to your QT Wallet Console (Help -> Debug Window -> Console)
dumpwallet "C:/users/yout-user-name/dumpwallet.txt" 

The command will export every of your private keys into that text file. 
P/s: in case you have encrypted Wallet before you need run this command before run dumpwallet 
walletpassphrase "your pass phrase" 600


user3346: Using bitcoin-qt for an interface:
listaddressgroupings
is the command which will list all addresses in use. Run it in the debug console window from the 'Help/Debug Window' screen.
Then, apparently, you can dump all the private keys, but only one at a time, using dumpprivkey for each key.
Seems lame.

user1842: You could send the dumpprivkey JSON-RPC call to the client.  It takes a single parameter of BitcoinAddress to reveal the private key for that specific address.
To export all private keys for all addresses, you would have to call listreceivedbyaddress to list the addresses and then call dumpprivkey for each.
See:
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

153: <p>I know that PyWallet has a -dumpwallet but without using pywallet, how can I export all the addresses and privatekeys with the stock bitcoind?</p>

<p>Is there an API command that lists all addresses held by the wallet?</p>
 91071: <p>Just go to your QT Wallet Console (Help -> Debug Window -> Console)</p>

<pre><code>dumpwallet "C:/users/yout-user-name/dumpwallet.txt" 
</code></pre>

<p>The command will export every of your private keys into that text file. </p>

<p>P/s: in case you have encrypted Wallet before you need run this command before run dumpwallet </p>

<pre><code>walletpassphrase "your pass phrase" 600
</code></pre>
 3346: <p>Using bitcoin-qt for an interface:</p>

<p>listaddressgroupings</p>

<p>is the command which will list all addresses in use. Run it in the debug console window from the 'Help/Debug Window' screen.</p>

<p>Then, apparently, you can dump all the private keys, but only one at a time, using dumpprivkey for each key.</p>

<p>Seems lame.</p>
 1842: <p>You could send the dumpprivkey JSON-RPC call to the client.  It takes a single parameter of BitcoinAddress to reveal the private key for that specific address.</p>

<p>To export all private keys for all addresses, you would have to call listreceivedbyaddress to list the addresses and then call dumpprivkey for each.</p>

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