Author

Topic: Trying to analyze blockchain in JAVA. (Read 118 times)

member
Activity: 96
Merit: 36
March 02, 2021, 11:49:44 AM
#3

Ideally. Thank you very much)
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
March 02, 2021, 11:23:53 AM
#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://bitcointalksearch.org/topic/list-of-all-bitcoin-addresses-ever-used-currently-unavailable-on-temp-location-5265993
member
Activity: 96
Merit: 36
March 02, 2021, 10:59:08 AM
#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 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 ....
Jump to: