普通交易所需的gas > ethestimateGas({from:ethaccounts[1], to: ethaccounts[2], value:50000000000000}) 21001 > ethgasPrice 20000000000 如上,顯示這筆account[1] => account[2] 的交易需要21001 gas, 當(dāng)前的gasPrice為 20000000000,計(jì)算以太坊中 發(fā)送交易/調(diào)用合約方法 需要消耗多少gas