Reader small image

You're reading from  Solidity Programming Essentials. - Second Edition

Product typeBook
Published inJun 2022
PublisherPackt
ISBN-139781803231181
Edition2nd Edition
Concepts
Right arrow
Author (1)
Ritesh Modi
Ritesh Modi
author image
Ritesh Modi

Ritesh Modi is a technologist with more than 18 years of experience. He holds a master's degree in science in AI/ML from LJMU. He has been recognized as a Microsoft Regional Director for his contributions to building tech communities, products, and services. He has published more than 10 tech books in the past and is a cloud architect, speaker, and leader who is popular for his contributions to data centers, Azure, Kubernetes, blockchain, cognitive services, DevOps, AI, and automation.
Read more about Ritesh Modi

Right arrow

Introducing tokens

Before getting into building our own tokens, it is important to understand the fundamental concept of tokens.

Tokens are everywhere. Imagine going to a funfair full of activities, rides, and sports. Upon entry, you get given some tokens that can then be exchanged for multiple rides or activities. The token is the currency of the fair. The fair stalls recognize tokens and do not accept any other currency, even though you get these tokens in exchange for some other currency to start with.

Another example of the usage of tokens is in casinos. You can buy tokens after entering the casino and then continue to play on different tables using the same tokens. Again, these tokens are the currency for the casino, and the tables do not accept any other currency.

So, what do we understand about tokens from the previous two examples? Tokens are a generic concept and can represent anything. A token is meant for gambling within a casino and, at the same time, it can...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Solidity Programming Essentials. - Second Edition
Published in: Jun 2022Publisher: PacktISBN-13: 9781803231181

Author (1)

author image
Ritesh Modi

Ritesh Modi is a technologist with more than 18 years of experience. He holds a master's degree in science in AI/ML from LJMU. He has been recognized as a Microsoft Regional Director for his contributions to building tech communities, products, and services. He has published more than 10 tech books in the past and is a cloud architect, speaker, and leader who is popular for his contributions to data centers, Azure, Kubernetes, blockchain, cognitive services, DevOps, AI, and automation.
Read more about Ritesh Modi