What a break down, I never knew there is a place to know the amount of bitcoin addresses with funds inside.
The blockchain is public data.
how do you collect the data and also determined how they transacted?
See:
List of all Bitcoin addresses with a balance. TL;DR:
CreditsBlockchair Database Dumps has a staggering amount of data, easily accessible (at
10 kB/s) with daily updates. All data presented in this topic comes from Blockchair.