Post
Topic
Board Development & Technical Discussion
Merits 2 from 2 users
Re: Get private keys when each was used
by
LoyceV
on 29/07/2022, 11:52:33 UTC
⭐ Merited by pbies (1) ,ETFbitcoin (1)
But if there's no list of known funded address, you either need to use blockexplorer API or list of all funded address (such as addresses.loyce.club).
OP is looking for addresses that had movement (maybe to look for Forkcoins?), so he needs a much longer list: List of all Bitcoin addresses ever used.
But that's only useful if you have the addresses with the private keys. If you only have private keys, you'll need to convert them into addresses first (with most likely 3 different address types per private key).

If you have an address list it's quick:
Code:
comm -12 <(sort list.txt) addresses_sorted.txt
This outputs all Bitcoin addresses from "list.txt" that have ever been funded.
Then all you need to do is match those addresses to their private keys again.