python 例子:
rawTx = {
'from': fromAddr,
'nonce': nonce,
'gasPrice': gasPrice,
'chainId':65, //这里加入chainId
'gas': 300000,
'value': web3.toWei(0,'ether'),
'data': ''
}
def deploy(rawTx):
signedTx = web3.eth.account.signTransaction(rawTx,privateKey)
hashTx = web3.eth.sendRawTransaction(signedTx.rawTransaction).hex()
receipt = web3.eth.waitForTransactionReceipt(hashTx)