This script estimates the life expectancy of the PumperMonster pyramid.
My analysis of this pyramid and the interpretation of results is here.
Requirements:
- Install Dart.
- Get a BSC archive node. I use MegaNode, their free tier is sufficient.
- Put your node URL to the
nodeUrl
constant in the code. - Download the transaction CSV data from BscScan. It allows you to get at most 5000 transactions in a single file. If there are more transactions, download multiple files. These files may overlap, each transaction will only be processed once.
- Put the CSV files into the
transactions
directory. The files should be named alphabetically with the earlier transactions in the earlier files. Files that come with this repository cover the given dates, so you only need to download the data for the newer dates and make sure your files are named alphabetically after the bundled ones.
Run the script like this:
dart main.dart
If you do not have a BSC node, you can run the script without extra blockchain data using the exported transactions alone. For that, comment out the line that reads
await record.fillBlockchainData();