Not now, wait for v12:Can anyone please give me the commands to dump all private keys at once, including change addresses?
> help dumpwallet
dumpwallet "filename"
Dumps all wallet keys in a human-readable format.
Arguments:
1. "filename" (string, required) The filename
Examples:
> dash-cli dumpwallet "test"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/
No, you need to create new one and import keys you need. And that will be easier in v12 too:Is there a way to glean the private keys from the wallet.dat?
> help importwallet
importwallet "filename"
Imports keys from a wallet dump file (see dumpwallet).
Arguments:
1. "filename" (string, required) The wallet file
Examples:
Dump the wallet
> dash-cli dumpwallet "test"
Import the wallet
> dash-cli importwallet "test"
Import using the json rpc call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/