5 在polygon上使用flashbots发送交易报错?

我的脚本是通过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就不行了吗?

请先 登录 后评论

1 个回答

浪荡人
请先 登录 后评论
  • 0 关注
  • 0 收藏,3785 浏览
  • 修仙哥 提出于 2022-10-10 18:13