Gas是什么意思啊?区块链中的Gas有什么用

访客 阅读:20 2024-06-24 03:33:17 评论:0
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

如果您曾经在以太坊上发送过交易,那么必须选择一定数量的Gas才能进行确认。没有适当数量的Gas,则网络的矿工将不会选择您的交易,也不会将其打包在后续区块中。本文将用形象的方法来进行Gas的科普,帮助大家对Gas有进一步的认识。

If you have sent a deal to Etheria, you must choose a certain number of Gass to confirm it. Without an appropriate number of Gas, the miners on the network will not choose your deal, nor will they package it in a subsequent block.

想要知道Gas是什么意思,首先要了解以太坊的运行原理。当我们发起一笔交易的时候,这笔交易就会进入一个池子里面,矿工就会从这个池子里面去寻找交易来进行确认。而转账的时候需要给矿工提供奖励也就是手续费,激励矿工将您的交易打包到区块链中,这个就是Gas。

You want to know what Gas means, first of all, about Ether's operating principles. When we start a deal, the deal goes into a pool, and the miners go to the pool for confirmation. And when you transfer it, you need to give the miners a reward, that is, a fee, to get the miners to pack your deal into the block chain, and that's Gas.

所以总的来说,Gas其实就是手续费的意思,类似于汽车需要加油才能跑起来,你的转账交易也需要充气才能完成。

So in general, Gas means , similar to cars that need gas to run, and your transfer transactions that need to be inflated.

这就是为什么区块链社区中的许多人喜欢将ETH称为“数字经济的燃料”,ETH确实可以转化为燃料,激励矿工在全球网络上进行计算。

That is why many of the block chain communities like to refer to ETH as & & & & & & & & & & & & of the digital economy;

Gas以ETH支付,多数情况下会转换为GWEI,以获得更好的用户体验。

Gas pays for ETH, which in most cases is converted to GWEI for better user experience.

在整个网络里,Gas非常重要,因为它是以太坊网络中的主要激励机制。请记住,矿工必须花费自己的计算能力来运行智能合约操作,他们这样做并非出于其善意,因为他们可以通过提供有价值的服务来赚钱。

In the whole network, Gas is very important because it is the main incentive in the community network. Remember that miners have to spend their computing power to run smart contracts, which they do not do in good faith because they can make money by providing valuable services.

像在任何工作量证明系统中一样,网络的安全性依赖于矿工哈希率,矿工哈希率主要取决于保证网络安全的动机。以太坊矿工可以获得的Gas越多,网络将越安全。

As in any workload proof system, the safety of the network depends on the Hashi ratio of miners, which depends mainly on the motivation to secure the network. The safer the network is the more Gas that will be available to the tatai miners.

考虑Gas时,有两个主要组成部分:Gas限制和Gas价格。执行一项操作的总成本是“Gas限制”和“Gas价格”的乘积(Gas限制x Gas价格)。

In considering Gas, there are two main components: Gas Limit and Gas Price. The total cost of implementing an operation is &ldquao; Gas Limit & rdquao; & & & & ldquao; Gas Price & rdquao; and Multiply (Gas Limit x Gas Price).

Gas限制是指用户愿意花费在计算上的最大Gas。一些基本计算需要预定数量的Gas,钱包很容易根据用户尝试执行的操作类型提供这些估算值。例如,以太坊黄皮书指出,每笔交易都需要21000 Gas,这就是为什么大多数用户界面默认显示21000作为“Gas限制”的原因。

Gas limits refer to the maximum amount of Gas that the user is willing to spend on calculations. some of the basic calculations require a predetermined number of Gass, and wallets can easily provide these estimates according to the type of operation that the user tries to perform. For example, the Taiyo Yellow Book states that 21,000 Gas is required for each transaction, which is why most user interfaces default to show 21,000 as & ldquao; Gas limit & & rdquao;

谈到这里,就要说Gas Limit和Gas Price这两个概念了,一笔交易的成本等于Gas Limit*Gas Price。Gas Limit就相当于一辆车要加多少油,Gas Price就相当于油价。

Speaking of this, the concepts of Gas Limit and Gas Price, the cost of a transaction is equivalent to Gas Limit* Gas Price. Gas Limit is equivalent to the amount of oil that a car needs to add, and Gas Price is equal to the price of oil.

通常来说,Gas Price最高为50 GWEI,GWEI是以太坊的一个计量单位,1个ETH等于10亿GWEI。

As a rule, Gas Price is up to 50 GWEI, which is a unit of measure in the Taiku and 1 ETH equals 1 billion GWEI.

一般一笔交易不超过20000Gas Limit,设置Gas Lim。

The normal transaction does not exceed 20,000 Gas Limited, setting up Gas Lim.

如您所料,设置的Gas价格越高,该交易将被包含在下一个区块中的机会就越高,因为这是对矿工的激励。大多数接口上的默认Gas价格为20 GWEI,这足以在接下来的几分钟内完成交易。但将价格提高到40 GWEI可能会使您进入下一个区块。

As you expect, the higher the price of Gas, the higher the chance that the transaction will be included in the next block, which is an incentive for miners. The default price of Gas on most interfaces is 20 GWEI, which is sufficient to complete the transaction in the next few minutes. But raising the price to 40 GWEI may allow you to enter the next block.

  • gas 是计算费用的方式。
  • 费用(fee)仍然以以太(ether)支付,但是它与gas不同。
  • gas 消耗量是执行的事务的工作量,如劳动小时数、车辆行驶的公里数,而gas 价格类似于你为完成工作支付的小时工资。两者的结合决定了总交易费用。
  • 如果 gas 价格过低,没有人会处理你的交易。
  • 如果你的gas 价格正常,但你的交易的gas 消耗量超出"预算"会导致交易失败,仍最为失败交易进入区块链,并且无法收回支付的费用。
  • 它确保没有程序可以永远运行,并且人们会小心运行他们的代码。它使矿工和用户都免受坏代码的影响。

以上就是Gas是什么意思啊?区块链中的Gas有什么用的详细内容,更多关于Gas科普的资料请关注脚本之家其它相关文章!

That's what Gas means. What's the use of Gas in the block chain? More information about Gascop.

本站提醒:投资有风险,入市须谨慎,本内容不作为投资理财建议。
Tag:gas   区块链  

文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明 网址:https://netpsp.com/?id=68995

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
可以去百度分享获取分享代码输入这里。
声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
关注我们

若遇到问题,加微信客服---清歌

搜索
排行榜
扫一扫,加我为微信好友加我为微信好友