Bitcoin Forum
April 28, 2024, 06:33:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Export private keys that had movement - Bitcoin Core  (Read 206 times)
pbies (OP)
Full Member
***
Offline Offline

Activity: 244
Merit: 126



View Profile
April 29, 2022, 09:43:14 AM
Merited by OmegaStarScream (3), hugeblack (2), vapourminer (1), Welsh (1)
 #1

How can I export or other way around extract private keys or public keys that had movement in Bitcoin Core?

Surely I can export all private keys but I will not know which of them had received or sent BTC.

I am looking for a way to filter all private keys in wallet that had movement.

BTC: bc1qmrexlspd24kevspp42uvjg7sjwm8xcf9w86h5k
I have 9900K and 1080 Ti, gathering funds for new desktop PC for Bitcoin operations - 14900K and RTX 4090
You can see the statistics of your reports to moderators on the "Report to moderator" pages.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714329224
Hero Member
*
Offline Offline

Posts: 1714329224

View Profile Personal Message (Offline)

Ignore
1714329224
Reply with quote  #2

1714329224
Report to moderator
1714329224
Hero Member
*
Offline Offline

Posts: 1714329224

View Profile Personal Message (Offline)

Ignore
1714329224
Reply with quote  #2

1714329224
Report to moderator
1714329224
Hero Member
*
Offline Offline

Posts: 1714329224

View Profile Personal Message (Offline)

Ignore
1714329224
Reply with quote  #2

1714329224
Report to moderator
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3458
Merit: 6099



View Profile
April 29, 2022, 10:18:40 AM
Last edit: April 29, 2022, 02:47:36 PM by OmegaStarScream
Merited by vapourminer (1)
 #2

Code:
listreceivedbyaddress

This will return all addresses which already received a transaction.

And then, you can export the private keys associated with these addresses:

Code:
dumpprivkey "address here"

If your wallet is encrypted, make sure to unlock it before exporting the private keys:

Code:
walletpassphrase "passphrase here" 60

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5543


Self-proclaimed Genius


View Profile
April 29, 2022, 10:19:09 AM
Merited by vapourminer (1)
 #3

There's dumpprivkey <address> command to export an address' private key.
Although it will not work in descriptor wallets.

For filtering addresses, use listtransactions "*" "100" to list the wallet's transaction together with the associated address(es).
Replace "100" if you think the wallet has more than 100 transaction history.

More info about the commands:

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
pbies (OP)
Full Member
***
Offline Offline

Activity: 244
Merit: 126



View Profile
April 29, 2022, 01:30:28 PM
 #4

Code:
listreceivedbyaddress

This will return all addresses which already received a transaction.

This take ages! Sad

BTC: bc1qmrexlspd24kevspp42uvjg7sjwm8xcf9w86h5k
I have 9900K and 1080 Ti, gathering funds for new desktop PC for Bitcoin operations - 14900K and RTX 4090
Welsh
Staff
Legendary
*
Offline Offline

Activity: 3262
Merit: 4110


View Profile
April 29, 2022, 02:20:22 PM
 #5

This take ages! Sad
Unless you're running on a rather slow computer or you've made a lot of transactions, I wouldn't have thought it would take that long. If you're running it from the graphical console, you could attempt to run it via the terminal to see if that helps performance a little bit.

Goes without saying, if you're struggling with performance, terminate other programs until you've completed this step. If your CPU is maxing, you'll have difficulty with whatever you're trying to do.
pbies (OP)
Full Member
***
Offline Offline

Activity: 244
Merit: 126



View Profile
April 29, 2022, 03:26:24 PM
 #6

Unless you're running on a rather slow computer or you've made a lot of transactions, I wouldn't have thought it would take that long. If you're running it from the graphical console, you could attempt to run it via the terminal to see if that helps performance a little bit.

Goes without saying, if you're struggling with performance, terminate other programs until you've completed this step. If your CPU is maxing, you'll have difficulty with whatever you're trying to do.

This is 9900K @ 5 GHz, 16 GB of RAM @ 4000 MHz and SSD drives (NVMe also).

This shouldn't be taking that long!

Wallet is big (1 GB) and has long history. It is running since few hours now.

BTC: bc1qmrexlspd24kevspp42uvjg7sjwm8xcf9w86h5k
I have 9900K and 1080 Ti, gathering funds for new desktop PC for Bitcoin operations - 14900K and RTX 4090
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16569


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 29, 2022, 03:38:19 PM
 #7

Wallet is big (1 GB) and has long history. It is running since few hours now.
For what it's worth: my wallet is less than 1% of yours, and listreceivedbyaddress takes less than a second on much slower hardware.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
pbies (OP)
Full Member
***
Offline Offline

Activity: 244
Merit: 126



View Profile
April 30, 2022, 09:10:10 AM
 #8

Wallet is big (1 GB) and has long history. It is running since few hours now.
For what it's worth: my wallet is less than 1% of yours, and listreceivedbyaddress takes less than a second on much slower hardware.

It taken all night and didn't finished. I suspect some loops that didn't ended. I closed Bitcoin Core with no luck.

BTC: bc1qmrexlspd24kevspp42uvjg7sjwm8xcf9w86h5k
I have 9900K and 1080 Ti, gathering funds for new desktop PC for Bitcoin operations - 14900K and RTX 4090
pbies (OP)
Full Member
***
Offline Offline

Activity: 244
Merit: 126



View Profile
April 30, 2022, 09:26:23 PM
 #9

Simple GUI Export of transactions did the trick.

From console it has hanged working on sth.

BTC: bc1qmrexlspd24kevspp42uvjg7sjwm8xcf9w86h5k
I have 9900K and 1080 Ti, gathering funds for new desktop PC for Bitcoin operations - 14900K and RTX 4090
BitMaxz
Legendary
*
Online Online

Activity: 3234
Merit: 2943


Block halving is coming.


View Profile WWW
April 30, 2022, 11:34:44 PM
 #10

Why not use dumpwallet command it will export all of your private keys into a file and then open it with notepad and copy all private keys and export it to Electrum and let the Electrum sync.

Now, after sync, you can sort all of the addresses with balances you can go under the addresses tab and look for balance just click it it will sort all addresses with balances.

Here's what I'm talking about


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pmalek
Legendary
*
Offline Offline

Activity: 2744
Merit: 7118



View Profile
May 01, 2022, 07:56:29 AM
Merited by ABCbits (1)
 #11

<Snip>
It depends on how much activity and how many addresses OP has used already. He wrote that his walet.dat file is 1GB in size, so the number of used addresses is probably quite a significant one. If we are talking about thousands of addresses, he might experience problems importing all of them in Electrum. Electrum isn't really suited for such a load. But there are no limitations to how many Electrum wallets he can create, so he can work around that by dividing his private keys in two or more batches and creating a new Electrum wallet for each batch.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16569


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 01, 2022, 11:44:24 AM
 #12

Splitting to multiple Electrum wallet is good idea, since it doesn't scale well.
If you want to check which addresses out of a very long list had (past) activity, this list is the fastest solution I know. After downloading 21 GB, it's scales very well. You can check millions of addresses as fast as your hard drive can read them.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
pbies (OP)
Full Member
***
Offline Offline

Activity: 244
Merit: 126



View Profile
May 01, 2022, 01:22:36 PM
 #13

Electrum is limited to ca 1000 private keys when importing. I am not sure if the limit is lower and it is 400.

I tried that earlier. Servers refuse to check that number of keys.

BTC: bc1qmrexlspd24kevspp42uvjg7sjwm8xcf9w86h5k
I have 9900K and 1080 Ti, gathering funds for new desktop PC for Bitcoin operations - 14900K and RTX 4090
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!