我的脚本是通过web3.py写的。使用下边rpc (goerli上使用正常)
self.w3 = Web3(HTTPProvider("https://polygon-rpc.com/"))
flashbot(self.w3 , signer, "http://bor.txrelay.marlin.org/")
当调用
try:
self.w3.flashbots.simulate(bundle, block)
print("Simulation successful.")
except Exception as e:
print("Simulation error", e)
return
报错
Simulation error The field extraData is 97 bytes, but should be 32. It is quite likely that you are connected to a POA chain. Refer to http://web3py.readthedocs.io/en/stable/middleware.html#geth-style-proof-of-authority for more details
请问是什么原因呢?我看了polygon上使用flashbots例子使用的是web3.js,换python就不行了吗?