I have a ton of old backed up wallet.dat
files with zero BTC in them, but (probably) the records of my old Bitcoin transactions in them, which I'm trying to extract as CSV data.
I already looked at the command line options and found no instance of "extract" or "CSV", but is there some way to do something simple on the command line such as:
bitcoincore.exe --extract-csv-transactions-from-wallet=wallet1.dat -o wallet1.csv
bitcoincore.exe --extract-csv-transactions-from-wallet=wallet2.dat -o wallet2.csv
bitcoincore.exe --extract-csv-transactions-from-wallet=wallet3.dat -o wallet3.csv
...
?
My current method of manually loading four of them in at a time, manually adding them to the config file and starting Bitcoin Core, is a nightmare. It has been saying "Rescanning" for an hour now with no sign of it ever stopping and that's just for the first batch of four wallets... out of tons.
This is going to be a multi-weeker nightmare project, isn't it?
loadwallet
andunloadwallet
RPCs. You can use thelisttransactions
RPC to get all of the transactions in JSON form and convert that into whatever format you want. – Ava Chow Oct 06 '21 at 18:41-connect=0
. This will force it to not make any network connections so that it doesn't sync the blockchain, and hence any loaded wallets will not have anything to rescan. However this may miss some transactions, and some functionality may be disabled as it will not be synced. – Ava Chow Oct 06 '21 at 18:43