我需要帮助如何收取交易费用在ethereum智能合同使用web3?另外,哪一个web3 API可以用来检查smart合同前端是否有足够的气体?
发布于 2019-07-03 08:10:23
你想估计这笔交易的费用吗?
let gasPrice = new BigNumber(15).times(1000000000);
let gasLimit = new BigNumber(21000);
let estimateFee = new BigNumber(gasPrice.times(gasLimit)).dividedBy(1000000000000000000).toString();https://ethereum.stackexchange.com/questions/72393
复制相似问题