Book Image

Ethereum Projects for Beginners

Book Image

Ethereum Projects for Beginners

Overview of this book

Ethereum enables the development of efficient, smart contracts that contain code. These smart contracts can interact with other smart contracts to make decisions, store data, and send Ether to others.Ethereum Projects for Beginners provides you with a clear introduction to creating cryptocurrencies, smart contracts, and decentralized applications. As you make your way through the book, you’ll get to grips with detailed step-by-step processes to build advanced Ethereum projects. Each project will teach you enough about Ethereum to be productive right away. You will learn how tokenization works, think in a decentralized way, and build blockchain-based distributed computing systems. Towards the end of the book, you will develop interesting Ethereum projects such as creating wallets and secure data sharing.By the end of this book, you will be able to tackle blockchain challenges by implementing end-to-end projects using the full power of the Ethereum blockchain.
Table of Contents (12 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributor
Preface
Index

Understanding token standards


In this section, we will have a deeper look into ERC20 tokens and why there was a need for other token standards, such as ERC721 and ERC827.

ERC20

If you go to Ethereum wiki and have a look at the ERC20 token standards, you can see all the functions and events that you can implement. Moreover, most tokens are ERC20 compliant. You can see that the Golem network token (GNT) is only partially ERC20 compliant, but it is still a standard token; you don't exactly have to follow everything, but it is always better if you do. Among these functions, what we haven't seen before is allowance and approve. These functions can be useful in certain situations. If, for example, you have 20 MetaCoin tokens, you can say I want my friend or another account to spend tokens in my name. Well, you can do this with the approve function. With the allowance function, you can specify a spender and how many tokens you want them to be able to spend.

ERC721

Lets move on to EIP GitHub. EIP stands...