如何进行web3事务?我在以下地方堆叠:
获取错误:无效的参数:必须提供一个Ethereum地址,但是我的地址没有问题。
web3.eth.sendTransaction({
from: paymentAddress,
to: paymentAddress,
value:Web3.utils.toWei(amountEth.toString(), 'ether')
}, (err, transactionId) => {
if (err) {
console.log('Payment failed', err);
divMessage.style.display = "block";
$('#divMessage').html('Payment failed');
} else {
}
})并获得错误web3. error不是一个函数
发布于 2022-06-28 13:08:51
我来解决它。我对过去的抄本有意见。我可能感染了病毒,当我复制我的入口时,我会得到其他病毒。我查了我的真实地址
window.ethereum.selectedAddresshttps://stackoverflow.com/questions/72786031
复制相似问题