Hey guys!
Is there a way you can listen to certain function calls on contract using web3.py? I googled it and the only solution I got was to scrape all pending transactions and checking if to field is CA and if input field starts with method id
Oct 12, 2022, 9:25 AM
if function emits an event, then you can listen for that
Oct 12, 2022, 3:05 PM
What if it doesn’t?
Oct 12, 2022, 3:06 PM
i would loop over the transactions in the contracts, each loop between block numbers, and then iterate based on that.
store it in a txt file or db, depending how much data you will be working with, and work from there
Oct 12, 2022, 3:14 PM