Post
Topic
Board Bitcoin Discussion
Re: Importing addresses to wallet
by
TiiStyle
on 12/02/2020, 21:40:47 UTC
What are you trying to accomplish? Even if you'd have enough RAM to import that many addresses, my gut feeling tells me it will make your wallet far too slow to do anything. Wallets aren't designed let alone optimized for these numbers.

Did you just generate hundreds of millions of addresses and now want to check if any of them holds any balance? If that's the case, I can think of an easier solution:

  • Create a list of all existing addresses with a balance.
  • Find duplicate addresses between that list and your own list.
I've posted the necessary (Linux) code for it a while ago, it's very fast to do as long as you have enough RAM.


I indeed generated 20 million adresses for no reason which resulted in 2 GB of data...
The extracted keys or the addresses alone are roughly 750 MB each. the rest is "overhead" by the generator.

I think I will create a query on bitcoin-wall.com/check/ querying each address :/
Proly still gonna be slow as heck but I could split it on multiple threads...

Won't have any hits anyway, so you guys are probably right that I shouldn't import them if I just want to check if they have a balance..
But I was more interested in owning them "forever" in the first place.

Are there any solutions (maybe bitcoind?) that can handle a larger amount of adresses than the desktop solution?