问题描述
我正在使用 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。有没有其他方式可以部署合约而不会出现这个问题?