【问题标题】:which is the best way to call send() for a smartcontract method?哪个是为智能合约方法调用 send() 的最佳方法?
【发布时间】:2021-12-31 19:38:42
【问题描述】:

我正在开发一个新的 dapp,我想知道当前的以太坊网络状态,这是与 web3 一起发送的正确参数,即

myconytact.methods.myfunction(<params>).send({from:address,?????})

我的问题是gas,gas limit等等。我应该使用estimateGas?以及在 send() 中传递的对象中的 put gas:gas? 谢谢

【问题讨论】:

    标签: ethereum smartcontracts web3


    【解决方案1】:

    一般情况下,您不需要输入gas或gas limit,因为这些是用户在确认交易时在他或她的钱包中设置的。

    【讨论】:

      猜你喜欢
      • 2018-12-28
      • 1970-01-01
      • 2018-07-10
      • 1970-01-01
      • 2021-05-28
      • 2020-01-16
      • 2019-01-17
      • 2021-05-29
      • 2019-01-17
      相关资源
      最近更新 更多