Skip to Content
精通区块链
book

精通区块链

by Lorne Lantz, Daniel Cawrey
March 2022
Intermediate to advanced
293 pages
5h 31m
Chinese
China Electric Power Press Ltd.
Content preview from 精通区块链
以太坊的演进 115
gas
限制
你愿意支付给矿工处理你的交易的最大
gas
量。这里指定的气体量应该足
以运行合同函数预期要执行的所有操作码。
Wei
最小的单位以太币(
ETH
),
1 Wei
10e-18 ETH
。美元可以被整除到
小数点后
2
位。
ETH
可以被整除到小数点后
18
位。就像美元的最小价值单
位是
1
美分一样,
Wei
是以太坊的最小价值单位。“聪”是比特币最小的价
值单位。
下面是一些更多的面额:
1 wei = 1 wei
1 kwei = 1000 wei
1 mwei = 1000000 wei
1 gwei = 1000000000 wei
ETH Gas Station
是一个非常有用的网站,可以根据当前的网络使用情况计
算出你应该支付的
gas
价格。
在前面的智能合约
Guestbook
例子中,我们写了一条测试信息,所需金额如下:
gas
限制
128050
交易使用的
gasb
比例
85367
66.67%
)。
gas
价格
0.000000001
以太币(
1 gwei
)。
4.4.3
与代码交互
这里有几个流行的与以太坊网络进行程序化交互的方法。
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
编写整洁的Python代码(第2版)

编写整洁的Python代码(第2版)

Posts & Telecom Press, Mariano Anaya

Publisher Resources

ISBN: 9787519863166