Today we will learn about what tokens are and the different token standards.
A token is a digital unit that represents "ownership" or rights to something. Tokens can give holders access to services, act as digital collectables, or represent equity in a project.
Some key features of tokens:
Fungible tokens (FT) are interchangeable with each other, like dollars or subway tokens.
Non-fungible tokens (NFT) are unique collectables, like trading cards. Each has a different value.
Some examples of how tokens are used:
NFTs have a wide variety of use cases. Since they are not interchangeable, they represent a set of unique objects. Therefore they can act as collectible items. The display of unique objects is the first use of NFT in the blockchain sphere. In addition, NFT is used to display paintings, digital art, music tracks, videos, and more.
First, there is a big category of utility tokens. These tokens are used to access certain services and protocols. They can be exchanged for services or other tokens and used as tokens in general.
It’s important to remember that we can treat tokens as digital assets — stocks. Stock tokens are used to raise funds for development projects or build a network from scratch.
For tokens to work across different services, common standards are needed. This allows platforms to integrate any token that follows the standard easily.
Popular token standards:
A token standard is:
That means a token standard is a set of mandatory and recommended functions and fields, as well as implementation methods, which token code must have to interact with various services. What’s more, the standard should describe all the basic principles of token operation: how to determine the number of tokens, how many tokens a specific user has, and how to transfer tokens from one address to another.
Tokens are different in function and structure, and that’s where standards come in. Each standard describes its own mandatory rules. In addition, the standards change over time: they are improved to make the token more functional and secure.
Each blockchain has its standard of tokens. An abbreviation and a number denote them — for example, Binance Smart Chain BEP-20, Tron — TRC-20, Ethereum — ERC-20. As far as we are working with the Ethereum network, we'll only go through the standards of this network.
There are a lot of standards for tokens. As active blockchain networks are developing, new processes require new standards. Ethereum is no exception.
Common operations for all token standards include:
Here is a small diagram to illustrate how it works on a blockchain network
As you can see, you don't need any transactions to see how many tokens you have. To transfer a token to another person, all you have to do is make a transfer. But for someone to take tokens from you, you need two transactions.
Knowing the transactions common to all tokens, we can break down the most popular token standards. That way you can understand which of them will best suit our exchanger.
Understanding token basics and standards is key for blockchain projects. An ERC-20 token standard was chosen for the decentralized exchange project. Next up is learning Solidity to develop the token and take the project forward!