我正试图在Ethereum网络上找出正常交易的费用!!
//Get Network Gas Price For singl unit
var GasPrice= await web3.Eth.GasPrice.SendRequestAsync();
//Assuming the number of major units is 21000
var TransactionLimit = new HexBigInteger(21000).Value;
var TransactionFee = GasPrice.Value * TransactionLimit;发布于 2022-03-07 10:31:52
是的,您的计算是正确的,但是我建议您阅读以太:煤气及费用,它解释了explains升级之前和之后的情况。
请注意,在您的情况下,TransactionLimit不是您实际使用多少气体单位,而是您的事务将不再执行的上限。实际燃烧气体单位与限值之间的差额将退还。
所有的价值观都在魏。
https://stackoverflow.com/questions/71360958
复制相似问题