Listening for pending transaction with web3 crate

Hello

Anyone confident enough with the web3 crate? Like how to build up a subscribe stream with filter on some specific contract and specific contract calls to monitor?

Maybe this is the closest thing I found but not really explain much and the documentation is not beginner friendly at all :frowning:

This is solved with javascript here:

I can create a subscription id but not sure how to make the stream and get the updates. After that I think I could filter it based on the javascript code. But the reconnecting error handling etc I'm also unsure how to solve in web3 crate.

I am currently studying evm. before that, I have also written some web projects with rust, which are more inclined to database, web3. 0 is still far from me,but he is very interesting.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.