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 精通区块链
128 | 第 5 章
CryptoKitties#1270015
的属性信息不是从一个集中的数据库中读取,而
是从
CryptoKittiesERC-721
智能合约中提取出来。转到函数
#32
,输入
CryptoKittiesID
,即
1270015
。从那里可以看到存储在以太坊区块链上的这个
CryptoKitties
的独一无二的属性,如图
5-2
所示。
图
5
-
2
:从 CryptoKitties 主智能合约中调用读取函数 getKitty,会响应存储在以太坊中关于
特定 kitty ID 为
1270015
的数据
5.2.3 ERC-777
这个拟议的标准是针对下一代同质化(
ERC-20
)代币。它包括对
ERC-20
标
准的一些改进,其中最重要的是代币的转移方式。
有两种方式可以让用户将
ERC-20
代币从一个地址转移到另一个地址:
推送交易(
push transaction
)
调用函数
transfer(address _to, uint256 _value)
是一个推送交易,发
送者发起了代币的转移。
拉取交易(
pull transaction
)
函数
approval(address _spender, uint256_value)
和
transferFrom
万物皆可代币化 | 129
(address _from, address ...
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
机器学习流水线实战

机器学习流水线实战

Hannes Hapke, Catherine Nelson
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

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

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu

Publisher Resources

ISBN: 9787519863166