【问题标题】:Error when deploying a smart contract with w3.eth.contract(): "The method eth_sendTransaction is not supported"使用 w3.eth.contract() 部署智能合约时出错:“不支持方法 eth_sendTransaction”
【发布时间】:2021-05-10 21:05:31
【问题描述】:

我正在使用 Web3.py 和一个经过许可的 Hyperledger Besu 网络。

当尝试使用 w3.eth.contract(...) 方法将智能合约部署到网络中时,我收到以下错误:

ValueError: {'code': -32604, 'message': 'The method eth_sendTransaction is not supported. Use eth_sendRawTransaction to send a signed transaction to Besu.'}

我想在执行 w3.eth.contract(...) 时调用了 eth_sendTransaction。有没有其他方法可以部署合约而不会出现这个问题?

【问题讨论】:

    标签: ethereum smartcontracts web3py hyperledger-besu


    【解决方案1】:

    【讨论】:

      【解决方案2】:

      【讨论】:

        猜你喜欢
        • 2021-10-09
        • 2018-01-22
        • 1970-01-01
        • 2019-12-12
        • 1970-01-01
        • 2022-08-05
        • 1970-01-01
        • 2020-01-28
        • 1970-01-01
        相关资源
        最近更新 更多