Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

理解以太坊Gas #4

Open
ysqi opened this issue Mar 31, 2018 · 1 comment
Open

理解以太坊Gas #4

ysqi opened this issue Mar 31, 2018 · 1 comment

Comments

@ysqi
Copy link
Owner

ysqi commented Mar 31, 2018

https://yushuangqi.com/blog/2018/what-is-gas-ethereum.html

背景介绍

以太坊是一个区块链网络,而Ether(ETH)是这个网络的助燃器。当你发送Token、执行合约、转移ETH或者在此区块上干其他的。你必须为此计算而支出,此支出是通过 Gas计算,最终将gas以ETH支付。

需要注意的是,无论交易成功与否,你都需为此支付手续费。即使交易失败,可矿工还是得为此交易进行校验和计算,你占用使用了计算资源所以必须和成功的交易一样,为此支付手续费。

你可在 etherscan.io 上查看交易手续费(gas limit * gas price)的情况,在钱包中你是无法选择多少交易费的,因为实际交易费是矿工根据计算得出的,并记录在包含此交易的区块中。

@ysqi
Copy link
Owner Author

ysqi commented Mar 31, 2018

切换评论,make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant