Chapter 14: Writing Token Contracts
Ethereum is one of the most important blockchain platforms around. One of the major reasons for its popularity is that Ethereum natively supports a token – Ether. It's well known that Ether is the native currency of Ethereum. Ethereum involves Ether in various denominations for every operation that changes its state, even when invoking simple contract operations such as raising an event or storing some value within a ledger. In short, cryptocurrency is built into Ethereum.
Despite the fact that Ethereum has its own currency, it allows developers to create a new currency in the form of tokens. This chapter is all about tokens, creating new tokens, and especially tokens based on ERC20 and ERC721 standards. ERC stands for Ethereum Requests for Comment and is the closest thing Ethereum has to a standard ratification process.
This chapter is focused on building tokens and will cover the following topics:
- Creating a new ERC20...