0

When I call

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

I get an error

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

My geth config

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

Why I can't access txpool?

TylerH
  • 20,799
  • 66
  • 75
  • 101
CooleRnax
  • 1
  • 3

1 Answers1

0

Instead of web3.geth.txpool.inspect I had to use w3.geth.txpool.inspect()

TylerH
  • 20,799
  • 66
  • 75
  • 101
CooleRnax
  • 1
  • 3