Bitcoin Forum
June 16, 2024, 03:24:31 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Best way to find batches of Base58 addresses  (Read 148 times)
mahurovihamilo (OP)
Jr. Member
*
Offline Offline

Activity: 33
Merit: 2


View Profile
May 22, 2024, 02:14:50 AM
Merited by ABCbits (2)
 #1

Hi all,

what would you recommend to web scrap for batches of Base58 (legacy) addresses? what is the best way to find loads of them and inquire into their TXs and balance?

Thanks !
pooya87
Legendary
*
Offline Offline

Activity: 3486
Merit: 10653



View Profile
May 22, 2024, 02:29:22 AM
Merited by ABCbits (3), Charles-Tim (1)
 #2

Run a full node with modifications so that it can index the blockchain based on addresses like what the block explorers do so that there is an up to date list of addresses with all UTXOs.

Otherwise you can only use third party services like the existing block explorers with their limitations to get a historical snapshot of the blockchain, addresses or UTXOs. Like this one to get addresses (base58 and others) with balance alongside maybe this one.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
SilverCryptoBullet
Member
**
Offline Offline

Activity: 101
Merit: 45


View Profile
May 22, 2024, 02:41:04 AM
Merited by ABCbits (1)
 #3

what would you recommend to web scrap for batches of Base58 (legacy) addresses? what is the best way to find loads of them and inquire into their TXs and balance?
Blockchair.com has data dumps.
https://gz.blockchair.com/bitcoin/addresses/

The file for Bitcoin addresses on 22-May-2024 01:23 is 1 GB. You can download the file (.tsv) and do your filter to check Legacy addresses and balances.
mahurovihamilo (OP)
Jr. Member
*
Offline Offline

Activity: 33
Merit: 2


View Profile
May 22, 2024, 03:13:03 AM
 #4

Thank you Gentlemen, excellent suggestions!
ABCbits
Legendary
*
Offline Offline

Activity: 2912
Merit: 7563


Crypto Swap Exchange


View Profile
May 22, 2024, 09:39:32 AM
Merited by pooya87 (2), Charles-Tim (1)
 #5

Run a full node with modifications so that it can index the blockchain based on addresses like what the block explorers do so that there is an up to date list of addresses with all UTXOs.

OP also could run either block explorer/Electrum server, where OP could directly access database created by those.



Otherwise you can only use third party services like the existing block explorers with their limitations to get a historical snapshot of the blockchain, addresses or UTXOs. Like this one to get addresses (base58 and others) with balance alongside maybe this one.

It's great suggestion. Although LoyceV website seems to be down where my browser shows ERR_CONNECTION_RESET or PR_IO_TIMEOUT_ERROR.



what would you recommend to web scrap for batches of Base58 (legacy) addresses? what is the best way to find loads of them and inquire into their TXs and balance?
Blockchair.com has data dumps.
https://gz.blockchair.com/bitcoin/addresses/

The file for Bitcoin addresses on 22-May-2024 01:23 is 1 GB. You can download the file (.tsv) and do your filter to check Legacy addresses and balances.

It's not practical due to default 10 kB/s limit though.

You can download 1 file at a time and the speed is limited to 10 kB/s. Our API keys are not applicable for increasing the download speed of data dumps. If you are a business or an academia/non-profit organisation that requires a higher speed, please contact us at <info@blockchair.com>.

█▀▀▀











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











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

Activity: 3486
Merit: 10653



View Profile
May 22, 2024, 11:35:06 AM
Merited by ABCbits (1)
 #6

It's great suggestion. Although LoyceV website seems to be down where my browser shows ERR_CONNECTION_RESET or PR_IO_TIMEOUT_ERROR.
It's not down since I can access it using my Tor browser. However I can't access it normally! The DNS lookup fails which is weird.
Code:
>nslookup -q=A http://addresses.loyce.club/
Server:  dns.google
Address:  8.8.8.8

*** dns.google can't find http://addresses.loyce.club/: Non-existent domain

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

Activity: 3346
Merit: 16832


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 22, 2024, 01:26:37 PM
Merited by pooya87 (2), ABCbits (2)
 #7

It's great suggestion. Although LoyceV website seems to be down where my browser shows ERR_CONNECTION_RESET or PR_IO_TIMEOUT_ERROR.
It works for me:
Code:
wget  -O- http://addresses.loyce.club/blockchair_bitcoin_addresses_and_balance_LATEST.tsv.gz
~
100%[==============================================================================================>]   1.47G  27.6MB/s    in 55s
Just in case, I restarted Apache2. That took a lot longer than I expected, I don't know why. Maybe it needed a good kick Wink

The DNS lookup fails which is weird.
Try without "http://", that made it work here.

what is the best way to find loads of them and inquire into their TXs and balance?
For "loads" of addresses, I recommend this:
How to use
The most likely use is to check a long list of Bitcoin addresses for a remaining balance.
On Linux, use this to find matching addresses (after extrating the compressed .gz file of course):
Code:
comm -12 Bitcoin_addresses_LATEST.txt <(cat mylist.txt | sort | uniq)
  • Bitcoin_addresses_LATEST.txt: the extracted latest version downloaded from addresses.loyce.club.
  • mylist.txt: your own list of addresses, one address per line.
This takes only seconds to check millions of addresses. If your text file has Microsoft formatting, you may need to use this instead:
Code:
comm -12 Bitcoin_addresses_LATEST.txt <(cat mylist.txt | fromdos | sort | uniq)

If you want the balances of many addresses:
Code:
grep -f mylist.txt blockchair_bitcoin_addresses_and_balance_LATEST.tsv
This is a bit slower and eats RAM: 500,000 input addresses uses 1.5 GB RAM and took 50 seconds. You could mix it with the earlier command to only search the balance for addresses that aren't empty.
Click the quote to download the files.

mahurovihamilo (OP)
Jr. Member
*
Offline Offline

Activity: 33
Merit: 2


View Profile
May 22, 2024, 03:54:38 PM
 #8

Thank you LoyceV, this is very useful.

Is there a way or command you could recommend to sort or isolate Base58 (legacy) addresses from the TSV sheet > to a data.txt file?

Thanks.
LoyceV
Legendary
*
Offline Offline

Activity: 3346
Merit: 16832


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 22, 2024, 04:14:14 PM
Merited by tbct_mt2 (2)
 #9

Is there a way or command you could recommend to sort or isolate Base58 (legacy) addresses from the TSV sheet > to a data.txt file?
Use grep:
Code:
grep "^1" blockchair_bitcoin_addresses_and_balance_May_22_2024.tsv > legacy_and_balance.tsv
I did it for you: legacy_and_balance.tsv (file will be deleted in 24h).

mahurovihamilo (OP)
Jr. Member
*
Offline Offline

Activity: 33
Merit: 2


View Profile
May 22, 2024, 04:19:05 PM
 #10

Thank you LoyceV !!

this is awesome ! Ill be able to do it from now on.
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!