Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Tron 上调用从合约返回数据但不更改任何数据的智能合约是否需要任何费用?
这取决于你如何称呼它。
eth_call JSON -RPC 方法是免费的。
eth_sendTransaction方法创建交易并以本地货币的形式消耗气体(在 Tron 网络的情况下,即 TRX)。
部分钱包应用只支持交易模式,不支持调用。一些 JSON-RPC 包装库(例如web3js)允许您在调用(使用库.call()方法)和事务(使用库.send()方法)之间进行选择。
.call()
.send()
注意:即使方法是预先设置的eth_,它们也可以在 Tron 网络上使用。
eth_