Born for blockchain games, ERC-1155 became the official token standard for Ethereum

A year ago, Enjin Chief Technology Officer Witek Radomski pushed the first version of the ERC-1155 multi-generation standard to the Github repository in Ethereum.

Since then, this token standard has undergone more than 50 revisions, and it has received 400 comments from the community that provide valuable insights and help ERC-1155 complete to the final version.

To this day, ERC-1155 has become a formal Ethereum token standard.

Since the Ethereum community has sealed it as "final", this means that ERC-1155 will not have more changes.

The problem is coming. This token standard is dry. Why do you have to spend so much energy to do this?

The official summary is:

"Standard interface for managing multi-contract type contracts. A single-deployed contract can include any combination of replaceable tokens, non-replaceable tokens, or other configurations (such as semi-replaceable tokens)."

Hard to understand, right? No hurry, let's first understand the motives for this token standard:

Ethereum token standards like ERC-20 and ERC-721 require a separate contract for each token type or collection, which creates a large number of redundant bytecodes on the Ethereum blockchain (simple It is a waste) and limits certain features by separating the nature of each token contract into its own licensed address. With the rise of blockchain gaming platforms, game developers may create thousands of token types, which requires a new type of token standard to support them.

In short, ERC-1155 came into being in order to allow developers to create and manage thousands of game tokens at the same time.

However, ERC-1155 is not specific to games, and many other applications can benefit from this flexible token standard.

This design can achieve new features, such as transferring multiple token types at a time, saving transaction costs. Multiple token transactions (managed/atomic exchange) can be built on top of this standard, eliminating the need to separately “approve” a single token contract.

In general, this token standard is currently the biggest beneficiary, blockchain game developers.

P1

a smart contract, multiple tokens

Like the ERC-20 and ERC-721 token standards, new smart contracts need to be deployed for each new "category" of tokens, and the core concept behind the ERC-1155 is that a single smart contract can manage an unlimited number of tokens.

Think of it as a vending machine with a variety of sodas, juices and even snacks. The customer interacts with the machine using a single secure interface (insert coins, push buttons) and the machine assigns the items of their choice. Similarly, the ERC-1155 contract for a game can contain a wide variety of items, from weapons and armor to health potions, magic scrolls, and more.

Each of these items can be "replaceable" with multiple copies available. Alternate tokens are used for divisible currencies (most ERC-20 tokens), and they are also useful for stackable items that don't need to be distinguished, such as a bunch of bows and arrows.

One-of-a-kind tokens, also known as irreplaceable tokens (NFT), allow each token to have its own unique parameters, history, and real-world mirroring. The pet dragon in video games may be an NFT, which has its own unique name, a power level, and a rich game history.

Support bulk trading

With ERC-1155, you can send multiple tokens in one transaction, saving you the cost of gas! It also prevents the need to wait for each block in a single transfer.

For example, in the example below, tester Phillippe implemented 155 asset transfers per second via ERC-1155 tokens.

P5

With the ERC-1155 project, atomic exchange can also be built using the same basic design, allowing users to exchange a token with absolute security, which does not involve intermediate parties and thus avoids fraud.

Strict rules make token reliable

The ERC-1155 Token Standard also has a very good feature that is achieved through a strict set of rules that tokens must follow.

ERC-1155 tokens, you can execute a deterministic smart contract function by simply sending the token to the address.

This is very meaningful.

For example, as long as the token is sent to a DEX exchange address, the exchange can immediately return another token to the sender's address. Similarly, blockchain games can perform game functions immediately after receiving the user's ERC-1155 token. Tokens can be packaged, converted, produced or hosted without the need to access the ABI or interact directly with the smart contract.

This type of functionality was originally proposed in ERC-223, but the standard failed to keep up. ERC-721 also implements " safeTransferFrom ", but it has a big problem, that is, it does not strictly require this rule for all transmissions, which means that users may permanently lose their tokens.

Guaranteed log tracking

With the continuous development of the Ethereum ecosystem, many dApps rely on traditional database and browser API services to retrieve and classify data. The ERC-1155 standard guarantees that the event log issued by the smart contract will provide enough data to create an accurate record of all current token balances. The database or resource manager can listen for events and provide indexing and categorical searches for each ERC-1155 token in the contract.

Smart contracts no longer need to maintain an index of each token ID, and the ID does not need to be succeeded in any way.

Imagine, no matter which smart contract you analyze, you can analyze the usage patterns and lifecycle of completely different ERC-1155 tokens by time rewinding and fast forwarding.

Well, a brief introduction to the characteristics of the ERC-1155 token standard, if you are interested in understanding the token agreement, then its token standard specification, may wish to look at it: https://github.com/ethereum /EIPs/blob/master/EIPS/eip-1155.md

We will continue to update Blocking; if you have any questions or suggestions, please contact us!

Share:

Was this article helpful?

93 out of 132 found this helpful

Discover more

Bitcoin

Coinbase Unleashes Spot Trading for Non-US Users!

NASDAQ-listed Coinbase Global Inc. has launched a new feature for international customers worldwide, offering spot tr...

Bitcoin

Max Keiser, Bitcoin Maxi and Advisor to El Salvador President, Goes All-In Predicts BTC Price to Skyrocket to $375,000

Fashionista readers, get ready to hear about Max Keiser's impressive success as a Bitcoin maximalist. He recently rev...

Blockchain

Is the SEC Losing its Mojo? Ripple’s Chief Legal Officer Raises Concerns

Fashionista, take note Ripple's chief legal officer, Stuart Alderoty, has raised concerns about the leadership of SEC...

Blockchain

Circle Financial Expands its Japanese Presence with SBI Holdings Partnership

Top stablecoin issuer, Circle Financial, joins forces with SBI Holdings to establish a stronger foothold in the Japan...

Market

Shiba Memu: A Presale Worth Barking About

Jump on the bandwagon Shiba Memu's presale ends soon and everyone is buzzing about investing in gold.

Bitcoin

Injective Protocol and Ethena Collab: Unleashing the Power of DeFi Beyond Ethereum

Ethena has successfully expanded their reach beyond the Ethereum ecosystem by integrating with Injective, showcasing ...