Web3.py: ValueError when using pending filter
Asked Answered
C

1

0

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?

Chromyl answered 5/12, 2021 at 12:12 Comment(0)
C
1

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.

Cacuminal answered 5/12, 2021 at 12:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.