I need a function which will track latest interactions with my contract on the server side. So let's say something like getRecentTransactions() which will return transaction hashes of interactions with the contract in the last 5 minutes. Any API or anything that can help in this case? Ideas?


Yes, you can use the web3.eth.subscribe from web3js library if you're using JavaScript.

If you're using Python, you can use web3.py's filtering methods.

I have previously used both, and they both work like charm.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.