简体   繁体   English

每笔交易在 NEAR 中都有自己的 gas 价格吗?

[英]Does each transaction have its own gas price in NEAR?

In the near indexer, only the gas price of blocks and action_receipts are available.在近索引器中,只有区块的 gas 价格和 action_receipts 可用。 Does NEAR have a gas price for every transaction like ETH? NEAR 是否有像 ETH 这样的每笔交易的 gas 价格? near-indexer-for-explorer-db ETH transaction example Near-indexer-for-explorer-db ETH 交易示例

Each transaction costs gas, and that transaction will always costs the same units of gas.每笔交易都需要消耗gas,而该交易将始终消耗相同单位的gas。 The price of gas units varies, however.但是,燃气单位的价格各不相同。

Gas units: internally, transaction fees are not calculated directly in NEAR tokens, but instead go through an in-between phase of "gas units". Gas 单位:在内部,交易费用不是直接在 NEAR 代币中计算的,而是经过“gas 单位”的中间阶段。 The benefit of gas units is that they are deterministic – the same transaction will always cost the same number of gas units.天然气单位的好处是它们是确定性的——同一笔交易总是花费相同数量的天然气单位。

Gas price: gas units are then multiplied by a gas price to determine how much to charge users.天然气价格:然后将天然气单位乘以天然气价格来确定向用户收取多少费用。 This price is automatically recalculated each block depending on network demand (if previous block is more than half full the price goes up, otherwise it goes down, and it won't change by more than 1% each block), and bottoms out at a price that's configured by the network, currently 100 million yoctoNEAR.这个价格会根据网络需求自动重新计算每个区块(如果前一个区块超过一半,则价格上涨,否则下跌,每个区块的变化不会超过 1%),并在网络配置的价格,目前1亿yoctoNEAR。

https://docs.near.org/docs/concepts/gas https://docs.near.org/docs/concepts/gas

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM