【问题标题】:Web3.py: ValueError when using pending filterWeb3.py:使用挂起过滤器时出现 ValueError
【发布时间】: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


    【解决方案1】:

    你正在使用一个糟糕的币安智能链公共节点。

    它可能支持也可能不支持您的操作。显然它没有。我们对此无能为力。

    请将此问题写给 Binance 支持,因为以太坊社区无法帮助您处理私人运营的节点。

    【讨论】:

      猜你喜欢
      • 2021-07-01
      • 2018-12-01
      • 2020-05-18
      • 2021-11-04
      • 2022-01-03
      • 2016-07-08
      • 2021-07-28
      • 2015-01-30
      • 1970-01-01
      相关资源
      最近更新 更多