我正在使用 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 - 使用 w3.eth.contract() 部署智能合约时出错 : "The method eth_sendTransaction is not supported",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67477675/