我仔细阅读了web3.eth.API,并在我的项目中输入了代码。
signed_txn = self.web3.eth.account.signTransaction(
{
'nonce': self.web3.eth.getTransactionCount(Web3.toChecksumAddress(self.address)),
'gasPrice': Web3.toWei(21, 'gwei'),
'from': Web3.toChecksumAddress(self.address),
'gas': 21000,
'to': recipient,
# 'chainId': 1,
'value': Web3.toWei(amount, 'ether')
},
private_key
)这段代码不运行。在这里,我无法理解的是如下。
用皮夹制作的钱包是高清钱包。如果有人知道这件事,请帮帮我。
https://ethereum.stackexchange.com/questions/50264
复制相似问题