如何计算天然气价格
2 个回答
- 投票数
-
- 2020-02-19
在Tezos,天然气没有货币换算.以10天然气vs 1M天然气执行合同不会"花费"您任何费用.气体只是防止合同无法执行的内部限制.
https://forum.tezosagora.org/t/psa-do-not-quote-gas-cost-in-tez/1618
In Tezos, gas does not have a monetary translation. It does not "cost" you anything to execute a contract with 10 gas vs 1M gas. Gas is simply an internal limitation to prevent contracts from running amok.
https://forum.tezosagora.org/t/psa-do-not-quote-gas-cost-in-tez/1618
-
-
您如何通过对块浏览器的API调用或对Tezos节点的RPC调用实际找到此价格?How do you actually find this price through either an API call to a block explorer or an RPC call to a Tezos node?
- 0
- 2020-09-04
- Thorkil Værge
-
在以太坊中,您可以使用 web3.eth.gasPrice 获得汽油价格.
在Tezos中,是否有任何RPC提供汽油价格,或者有计算汽油价格的公式?