Grasia / dao-scripts

Scripts to get data for the DAO-Analyzer dataset
https://www.kaggle.com/datasets/daviddavo/dao-analyzer
GNU General Public License v3.0
0 stars 0 forks source link

Get amount of tokens by processing blockscout's transactions #6

Open daviddavo opened 1 year ago

daviddavo commented 1 year ago

The current method to get the balance of a DAO is to use the tokenlist endpoint in blockscout's API. It's prone to returning a 500 error (and then the request needs to be done again). Furthermore, it is one of the few collectors still not updatable: it is the one that takes the most time to update, and we can't get data in a certain point in time.

The solution would be to get the list of transactions of the DAO and keep the count of each Token. Storing these transactions (optional) would also allow us to explore the relationships between DAOs and users.