Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Web3.py: ValueError when using pending filter

I am trying to look up pending transactions in the BEP20 network using web3.py.
As stated in in this stack overflow question, one option to do this is using the filter object.
Here is a minimal example that should reproduce my problem:

from web3 import Web3

peer = "https://bsc-dataseed.binance.org/"
w3 = Web3(Web3.HTTPProvider(peer))

f = w3.eth.filter('pending')
res = f.get_all_entries()

This code results in the ValueError:

ValueError: {'code': -32000, 'message': 'filter not found'}

Am I missing something?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You are using a crappy Binance Smart Chain public node.

It may or may not support your operations. Apparently it doesn’t. We cannot do anything about it.

Please write this question to the Binance support, as Ethereum community cannot help you with nodes run by private parties.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading