server.py
contains the API code for the Flask server (back-end)main.py
contains the streamlit code (front-end)
pip install plotly streamlit pandas requests flask
"""A stateful event scanner for Ethereum-based blockchains using web3.py. | |
With the stateful mechanism, you can do one batch scan or incremental scans, | |
where events are added where the scanner left last time. | |
Copyright 2021 Mikko Ohtamaa, https://twitter.com/moo9000, licensed under MIT | |
""" | |
import datetime | |
import time |