【问题标题】:Can anyone clarify how much cost it takes for a user to use a function of a smart contract on ethereum blockchain?谁能澄清用户在以太坊区块链上使用智能合约功能需要多少成本?
【发布时间】:2020-12-07 17:53:31
【问题描述】:

它对开发 Dapps 是否有价值? 使用智能合约是否比普通应用程序需要更多的钱(高得多)?

【问题讨论】:

    标签: blockchain ethereum solidity bitcoin smartcontracts


    【解决方案1】:

    计算函数的成本涉及很多因素。例如使用的gas量gas价格等。如果您想计算函数执行的确切成本,可以将Metamask连接到您的SmartContract (以太坊节点)。在发送交易时,它会为您提供交易所需的所有信息,包括根据当前以太坊价格计算的交易成本。

    【讨论】:

      【解决方案2】:

      Transaction Fee 取决于 Ether PriceGas UsedGas Price。例如“标准”ERC20代币转账:

      https://etherscan.io/tx/0xbdcfe0e5d548d707a8b092884509a4182c9bfccaddfef1a7c7b9d4f9d4efe326

      注意:5.8 Gwei Gas Price 和 $210.06 Ether Price 今天这是一笔非常便宜的交易。

      更多信息请使用ethgasstation.info

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2021-06-29
        • 2017-06-24
        • 1970-01-01
        • 2019-04-07
        • 2021-02-24
        • 1970-01-01
        • 2018-08-20
        相关资源
        最近更新 更多