【发布时间】:2022-01-10 23:50:19
【问题描述】:
我正在尝试使用 web3.py 在 BEP20 网络中查找待处理的交易。 如in this stack overflow question 中所述,一种选择是使用过滤器对象。 这是一个可以重现我的问题的最小示例:
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()
此代码导致 ValueError:
ValueError: {'code': -32000, 'message': 'filter not found'}
我错过了什么吗?
【问题讨论】:
标签: python ethereum web3 cryptocurrency web3py