Bitcoin Forum
November 16, 2024, 07:35:13 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Trying to analyze blockchain in JAVA.  (Read 112 times)
Sanka555 (OP)
Member
**
Offline Offline

Activity: 96
Merit: 36


View Profile
March 02, 2021, 03:59:08 PM
Merited by LoyceV (4)
 #1

bitcoinj, JAVA8
I need help )


I'm trying to collect a database in which all the addresses used will be
I have Core

Quote
List<File> blockChainFiles = new ArrayList<>();
      blockChainFiles.add(new File("blk02447.dat"));
      MainNetParams params = MainNetParams.get();
      Context context = new Context(params);
      BlockFileLoader bfl = new BlockFileLoader(params, blockChainFiles);

      // Iterate over the blocks in the dataset.
      for (Block block : bfl) {
         //   Huh??
      }

result:
Quote
000000000000000000068b9429e6a7c559782de3e01bdf3a33b9c55f30df0cf7
000000000000000000086268890d891e32325e17fc4d5c0c2795d877ecff1f28
0000000000000000000444ef790b17857bf2358071c85b031f94455a72aa2c0f
0000000000000000000219a5cb8ac8fef151a639214640f7fa3298429ad64156
0000000000000000000552a171bf27df6a7f51678faa22f5f3705331090c6fa0
.............

how to get list addresses (and If possible, the amounts for them) by analyzing Block?
the documentation for this library is beyond my understanding (((  I tried ....
bitmover
Legendary
*
Offline Offline

Activity: 2492
Merit: 6320


bitcoindata.science


View Profile WWW
March 02, 2021, 04:23:53 PM
 #2

bitcoinj, JAVA8
I need help )


I'm trying to collect a database in which all the addresses used will be

.....

how to get list addresses (and If possible, the amounts for them) by analyzing Block?

I can't help with your code, but I think I can help to solve your problem.

You want to get a list of all addresses with balance?

You can get it here, LoyceV has a list of all addresses with balance https://bitcointalk.org/index.php?topic=5254914.40;topicseen

He also has a list of all addresses ever used
https://bitcointalk.org/index.php?topic=5265993.0

Sanka555 (OP)
Member
**
Offline Offline

Activity: 96
Merit: 36


View Profile
March 02, 2021, 04:49:44 PM
 #3


Ideally. Thank you very much)
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!