【问题标题】:AttributeError: module 'web3.geth' has no attribute 'txpool'AttributeError:模块“web3.geth”没有属性“txpool”
【发布时间】:2020-12-27 16:51:41
【问题描述】:

当我打电话时

provider = Web3.HTTPProvider('some url')
w3 = Web3(provider)
web3.geth.txpool.inspect()

我收到一个错误

AttributeError: module 'web3.geth' has no attribute 'txpool'

我的 geth 配置

--http --http.api eth,net,web3,txpool

为什么我无法访问 txpool?

【问题讨论】:

    标签: web3 geth web3py


    【解决方案1】:

    从 stackoverflow 的角度重新审视,解决了我的问题 而不是 web3.geth.txpool.inspect 我不得不使用 w3.geth.txpool.inspect()

    【讨论】:

      猜你喜欢
      • 2023-01-15
      • 2018-04-14
      • 2019-02-18
      • 1970-01-01
      • 2020-01-01
      • 2019-07-20
      • 2021-11-05
      • 2021-11-04
      相关资源
      最近更新 更多