Let’s see what are the differences between the two.
- In this article
- Что такое Moralis?
- What Makes Fungible Tokens Different From Non-Fungible Tokens?
- Fungible Tokens Are Not Unique
- ERC-721 и ERC-1155
- NFT на других цепях
- First Standardized Interface For Creating And Trading NFTs
- Advantages Of ERC-1155
- Other Benefits Of ERC-1155
- FAQ
- Comparison between ERC 721 and ERC 1155
- Bottom Line
- Key NFT Marketplace Components (Tech and Architecture)
- Reviewing The ERC 1155 Token Standard
- ERC20
- What are ERC Token Standards?
- Why Should You Think of ERC 721 vs ERC 1155?
- ERC-721 Token Standard
- ERC-1155 Token Standard
- ERC-1155 Explained
- Резюме
- ERC-721 против ERC-1155
- Как создать токен ERC721?
- What Does ERC Mean?
- Код для передачи токенов ERC721
- ERC-721 vs ERC-1155
- Setting the Standards
- NFT Marketplaces
- Как передать токены ERC721?
- What Are Tokens and Token Standards?
- What are tokens?
- ERC-721 Explained
In this article
Two notable Ethereum token standards are ERC-721 and ERC-1155, both of which are tied to the growing popularity of the non-fungible token (NFT) and their applications.
Если вы планируете не только покупать токены, но и создавать собственные, стоит разобраться в стандартах. Большая часть децентрализованных приложений создаются на Ethereum. Эта платформа предлагает много различных возможностей и несколько стандартов. Для чего нужны стандарты?

Изображение Tumisu с сайта Pixabay
Предположим, вы хотите создать NFT для какой-либо игры и продать их на OpenSea. Чтобы ваш токен подошел по параметрам игры, был совместим с другими предметами и с самой игрой, для которой он создается, и нужны общие стандарты.
ERC или Ethereum Request for Comments – это, по сути, технический документ, который предоставляет спецификации методов, инноваций, исследований и признаков для пользователей экосистемы Этериум. Сегодня используются три наиболее популярных стандарта: ERC-20, ERC-721, ERC-1155.
With the growing popularity of NFTs, the ERC 1155 vs ERC 721 debate has also become a critical concern. Let’s dive in to understand the difference between ERC 1155 and ERC 721.
Aspiring to Become a Certified NFT Expert? Enroll in Certified NFT Professional (CNFTP) Course Now!
Что такое Moralis?
Moralis — это ведущая платформа для создания и отправки токенов ERC721 между кошельками, среди прочего. В частности, Moralis дает вам возможность сэкономить время и деньги не только при разработке токенов NFT, но и при создании dApps в целом.
Одним из многих преимуществ платформы Moralis является уже развитая серверная инфраструктура, к которой пользователи получают доступ. Это позволяет значительно ускорить процесс разработки для всех ваших будущих блокчейн-проектов. Кроме того, это также инфраструктура вместе с SDK от Moralis, которая позволяет передавать токены с помощью всего одной строки кода.
Кроме того, платформа также предоставляет широкий выбор превосходных инструментов разработки, благодаря которым процесс разработки различных токенов и dApps становится легким. Например, вы можете легко создавать ETH dApps с помощью узлов Moralis Speedy. Однако служба быстрых узлов от Moralis — это лишь одна из многих функций платформы.
Если вы хотите стать разработчиком блокчейна, мы настоятельно рекомендуем ознакомиться с блогом Moralis. Часто публикуется свежий, высококачественный контент, который поможет вам стать лучшим разработчиком. Например, вы можете ознакомиться со статьями, объясняющими лучшие языки для разработки блокчейна, ограничения узлов RPC, как создать DEX или как создавать смарт-контракты.
Итак, если вы хотите начать разработку DApp, первым важным шагом является регистрация в Moralis. Регистрация на платформе бесплатна, и настройка вашей учетной записи займет всего пару секунд!
Читать еще: Криптография терпит крах, но топ-100 коллекций NFT сохранили свою ценность
What Makes Fungible Tokens Different From Non-Fungible Tokens?

Fungible Tokens Are Not Unique
Токены являются фундаментальными особенностями разработки блокчейна и, при правильном использовании, могут быть довольно мощными. Поскольку они являются такими выдающимися инструментами, они должны каким-то образом регулироваться, что в основном делается с помощью какого-то стандарта. Стандарт также гарантирует, что в сети блокчейна существует совместимость, гарантируя, что все токены, например, могут быть переведены с одного кошелька на другой.
В случае сети Ethereum существует несколько различных стандартов, и наиболее популярными из них являются ERC-20, ERC-721 и ERC-1155. Стандарт токенов ERC-20 регулирует взаимозаменяемые токены, ERC721 является стандартом для NFT, а ERC-1155 является стандартом для полузаменяемых токенов.
Стандарт токенов ERC721 реализует API для токенов со смарт-контрактами. Это гарантирует, что все токены, следующие этому стандарту, имеют некоторые функции по умолчанию, позволяющие пользователям и разработчикам получать балансы токенов, передавать токены и т.д. Кроме того, токены ERC721 могут представлять практически все, что угодно, что делает их довольно динамичными.
Более того, передача и создание токенов ERC721 исключительно просты. Например, в платформе Moralis, можно передавать токены ERC-721, ERC-20 и ERC-1155 всего одной строкой кода.
Однако это далеко не предел платформы Moralis, которая позволяет создавать всевозможные dApps и захватывающие блокчейн-проекты. Кроме того, среди множества отличных функций есть встроенная поддержка MetaMask, шаблон React DApp или руководство по аутентификации Ethereum. Это широко используемый криптокошелек, который служит шлюзом для экосистемы dApps Ethereum, что пригодится при создании dApps Ethereum и т.д.
Читать еще: Что такое блокчейн смарт-контракты: история, принципы работы и применение



ERC-998 — стандарт, позволяющий объединять токены различных стандартов, а так же использовать в качестве портфеля цифровых активов. Кроме того, токен данного стандарта может состоять из нескольких компонентов, а их комбинация может гарантировать абсолютную подлинность товара.ERC-1155ERC-1155 — новый стандарт NFT токенов, который решает множество проблем, присущих другим стандартам. Теперь токены стандартов ERC-20 и ERC-721 или оба одновременно, могут быть определены одним смарт-контрактом. Смарт-контракт содержит минимальный объем данных, которые необходимы для определения токенов. ERC-1155 поддерживает атомарные свопы, которые позволяют обменивать токены без посредника. Основное преимущество данного стандарта заключается в возможности комбинирования взаимозаменяемых и не взаимозаменяемых токенов в одной транзакции. ERC-1155 активно применяется в игровой индустрии (GameFi).
It seems nearly everyone has a strong opinion on this matter. So let’s delve into what the difference is between the two and why it does or does not matter.
ERC-721 was the first standardized interface for creating NFTs. It’s the most widely used. It is immutable, transparent in ownership and security. Hence it is Non-fungible, a true NFT. It can’t be divided and represents a single asset that is in interchanged. It’s great for creating and tracking unique NFTs. Although transferable, trying to transfer an entire collection with it can be slow and inefficient.
However, the biggest issue with ERC-721 is that when gas fees are high, it can cost an artist a tidy sum in Etheruem to mint an NFT. Therefore, when you need to mint NFTs en masse, it doesn’t make much sense to use this contract.
ERC-1155 is a unique token that supports non-fungible (NFTs) and fungible tokens. It’s faster and more efficient to use in batch token transfers. Developed by Enjin, it is called, “the next generation multi-token standard.”
They both appear to be great contracts that can be used for non-fungible tokens, so why the big debate?
Is it just personal preference?
Which one should a new artist choose?
In a nutshell, it simply comes down to your use case for them, that’s all.
So while you may wonder what to do, there is no right or wrong answer. Some collectors will only choose to buy an NFT minted on ERC-721 and others will not have a preference about the issue. Your use case will usually determine which one is the best fit for minting your NFT.
As an artist in this space, I mint on both. I understand newcomers being drawn to platforms using ERC-1155 as they are open, easy and affordable. Many support their decisions if they choose this minting standard and believe their work should not be viewed as lesser than those who have been in this space longer and choose to mint only on ERC-721.
As a community, we should be a welcoming space for all to grow in. Artists should never be shunned for which contract they decide to mint with. In support and solidarity for all who wonder if choosing the “lazy minting” was the right thing to do or not, I minted my own Anatomy Shapes Collection on OpenSea under such a contract.
Regardless of what you choose to use, above all, remember to have fun.
ERC-721 и ERC-1155
До создания ERC-721 более старые NFT, такие как CryptoPunks, были построены на производной ERC-20 и сегодня считаются гибридами. ERC-721 стал самым популярным стандартом NFT. Но в 2018 году был создан и представлен альтернативный общий стандарт NFT, известный как ERC-1155
Тезис ERC-1155 был простой: она была направлена на объединение функций как ERC-20, так и ERC-721 в один стандарт NFT, в то же время рассматривая некоторые недостатки, присущие ERC-721, такие как более высокое потребление газа.
В результате ERC-1155 является высокогазоэффективным. Особенно при пакетной передаче. Например, он может обрабатывать 10 NFT в рамках одной транзакции, в отличие от ERC-721, который требует 10 отдельных транзакций для передачи 10 NFT. Однако основной компромисс заключается в том, что историю владения жетонами ERC-1155 труднее отследить. Причина этого в том, как они запрограммированы.
Оба стандарта имеют свои плюсы и минусы. И предназначены для различных видов активов. Примечательно, что ERC-1155 часто рассматривается как полувзаимозаменяемый стандарт. Потому что он позволяет интеллектуальному контрактному интерфейсу представлять и контролировать как токены типа ERC-20, так и ERC-721 одновременно. Тем не менее, основной принцип остается тем же и позволяет невзаимозаменяемым активам быть токенизированным и удостоверенными на блокчейне.
NFT на других цепях
Блокчейны — некие общественные игровые площадки для децентрализованных приложений. Любой может создать что угодно в сетях блокчейн. Но это также означает, что нет никаких требований или стандартов, которым можно было бы соответствовать. Например, мы можем построить с помощью пластика. Но другой человек может построить с использованием другого материала, такого как цемент. Дело в том, что в силу его децентрализованного характера не существует применимых стандартов.
ERC-721 и ERC-1155 являются яркими примерами различных стандартов NFT на Ethereum. Однако сейчас мы являемся частью многокомпонентного мира, каждый со своими собственными техническими спецификациями для NFT. Ниже приводится (неисчерпывающий) список различных стандартов NFT и проектов NFT на других блокчейнах.
Вы, возможно, задаётесь вопросом, возможно ли соединить и переместить ваши NFT между различными блокчейнами. Например, на Ethereum в настоящее время возможен мост, но он находится в экспериментальной фазе на Rinkeby Testnet.
В не столь отдаленном будущем, вы должны быть в состоянии соединить NFT на Ethereum Virtual Machine (EVM), совместимых цепях, которые используют аналогичный стандарт токена ERC-721, такие как Binance Smart Chain и Polygon. С другой стороны, не совместимые с EVM цепочки, такие как Solana, которая использует стандарт SPL NFT, потребуют создания новой инфраструктуры, прежде чем вы сможете переместить свои NFT.
First Standardized Interface For Creating And Trading NFTs

Written in Solidity language, ERC-721 was the first standardized interface made for creating and trading NFTs and is still considered to be the gold standard. Currently, ERC-721 is the most widely used token standard that requires the deployment of single contacts for individual NFTs. This makes ERC-721 slow and expensive, but on the other hand, also provides the option to customize the preferences of individual NFTs and offers better security. Moreover, minting or trading NFTs with the help of smart contracts on ERC-721 requires the creators to meet strict conditions for conducting a transaction.
Advantages Of ERC-1155
Apart from the standard fungible and non-fungible tokens, ERC-1155 also enables the deployment of semi-fungible tokens. Semi-fungible tokens can be either a fungible token converted into NFT or vice versa. Unlike ERC-20 and ERC-721, the ability of ERC-1155 to convert digital or real-world assets into tokens simultaneously makes it the next-generation of token standard.
Smart contracts deployed with ERC-1155 token standards have the feature for inspecting a valid or invalid transaction. If in case the transaction was unable to process, then the feature will ensure the tokens come back in the wallet of the issuer. Moreover, this feature prevents the transfer of the token to a wrong address and enables secure and hassle-free token transfer. Also, ERC-1155 even logs all the things right from the moment of minting to the burning of a token.
Other Benefits Of ERC-1155
Although ERC-1155 is quickly gaining popularity due to the low gas fee and transaction time, ERC 721 standard will also not be soon forgotten. The ERC 721 and ERC 20 are perfect for releasing individual non-fungible and fungible tokens, respectively. Whereas, the ERC 1155 standard is perfect for releasing several tokens at the same time, along with the ability to add fungible and non-fungible tokens in it. The only drawback of ERC-1155 is that it stores less robust information in order to save time and transaction costs. Therefore, ERC 1155 standard will continue to rise in the future for releasing a collection of tokens, and traditional standards will be perfect for individual tokens.
FAQ
Q: Which is the best wallet for storing ERC-721 or ERC-1115 tokens?
Q: Who has made the ERC 1155 standard?
The ERC 1155 is developed by Witek Radomski, co-founder of Enjin, to introduce a new token standard for Ethereum based video game assets.

Comparison between ERC 721 and ERC 1155

The two popular ERC token standards in the crypto space right now have unique traits. However, the functionalities of the ERC-1155 standard showcase how it can overshadow the ERC 721 token standard. On the other hand, it is important to identify the situations where ERC-721 serves as a better fit than ERC-1155. Here is an outline of the differences between ERC-721 and ERC-1155.
The first factor in a comparison of ERC 721 vs ERC 1155 refers to the ease of use. In the case of ERC-721, you would need a single operation for each transaction. On the other hand, ERC-1155 enables the facility for multiple operations within a single transaction. The best thing about ERC 1155 is that the smart contracts could offer support for an unlimited assortment of tokens. On the contrary, the ERC-721 token standard implies the need for new smart contracts for transactions with each type of token.
The second pointer in the difference between ERC 1155 and ERC 721 draws the limelight on flexibility for batch transfers. You can use the ERC-1155 token standard as vital support for facilitating batch transfers of tokens. The facility of batch transfers plays a crucial role in reducing the transaction costs and time associated with each transaction.
On the other hand, ERC 721 token standard implies the need for creating an individual smart contract for transferring each NFT or token. If you plan on sending multiple NFTs in an ERC-721 system, then you have to create transactions for individual NFTs. As a result, the load on the network increases by massive margins, thereby leading to congestion and increased transaction cost and time.
Just as the world started experimenting with different uses of non-fungible tokens, everyone is gearing up to welcome semi-fungible tokens. The standard non-fungible and fungible tokens have become quite redundant with their own limitations. Semi-fungible tokens bring the best of both by enabling the conversion of fungible tokens into NFTs or vice versa. Interestingly, ERC 1155 token standard offers the flexibility for creating semi-fungible tokens. Most important of all, the ability to convert digital or real-world assets into NFTs or vice versa is a huge advantage for the ERC-1155 token standard.
With the ERC-721 standard, you don’t have the facility for reclaiming your assets if you transferred them to the wrong address. On the contrary, the ERC-1155 token standard offers a unique feature known as the ‘safe transfer’ function. The safe transfer function is a product requirement for evaluating a transaction’s validity and also enables hassle-free token transfers.
Bottom Line
The most crucial highlight of the difference between ERC 1155 and ERC 721 focuses on the way ERC-1155 addresses the limitations of ERC-721. While ERC-721 offered the foundation for non-fungible tokens, ERC-1155 offers the traits required for future NFTs. Once you begin exploring the definitions of both token standards, you can uncover many critical points of differences.
Join our annual/monthly membership program and get unlimited access to 35+ professional courses along with the NFT Fundamentals course and 60+ on-demand webinars.
Key NFT Marketplace Components (Tech and Architecture)
An NFT marketplace should include unique, advanced front-end and back-end features for optimized functionality, support, and differentiation.
Third-Party Integrations: An optimal NFT marketplace would need integrations with third-party technologies and services such as crypto wallets , social media platforms, and payment gateways. Such integrations would be based on organizational needs and could be more or less extensive.
Reviewing The ERC 1155 Token Standard

ERC-1155 is a multi-token standard made by the Enjin that enables the deployment of smart contracts for fungible, non-fungible, or semi-fungible tokens. Just like ERC-721, ERC-1155 also lets individual tokens possess their metadata or other attributes. But, ERC-1155 is the next generation of token standards that allows the simultaneous transfer of multiple token types. This is different from ERC-721 and ERC-20, where a separate contract gets deployed for each Non-fungible or fungible token. As a result, ERC-1155 removes the requirement for approving contracts for tokens separately, thus reducing the cost and time of conducting transactions. Furthermore, atomic swaps or escrow trading of tokens is even possible with ERC1155, and the describing or mixing of different token types within a single contract is also hassle-free.
ERC20
В 2015 году Виталий Бутерин предложил придерживаться определенного стандарта или свода правил при создании новых smart contract на блокчейне Ethereum. А так как Ethereum – проект с открытым кодом, то внести предложения может кто угодно и если сообщество признает их значимыми, они принимаются, как официальные. Стандарт, предложенный Виталием, приняли и назвали ERC20.
Добавление свода правил сильно упростило процесс создания новых криптовалют. Удобно было и то, что разные токены ERC-20 стало возможно хранить на одном адресе в сети Ethereum, а для выпуска нового актива не нужно запускать отдельный блокчейн. Но ERC-20 ориентирован на взаимозаменяемые токены. С развитием Ethereum и растущей популярностью NFT командам разработчиков пришлось продумывать новые стандарты, подходящие для невзаимозаменяемых токенов.
Невзаимозаменяемые токены широко применяются в мире технологий, начиная от социальных сетей и заканчивая исследовательскими работами в области криптовалют. Стандарт ERC-721 предложил подходящую основу для создания индивидуального, невзаимозаменяемого токена. С его помощью можно создать уникальную коллекционную торговую карту или совершенно уникальный персональный аватар.
Дело в том, что ERC-721 фокусируется именно на невзаимозаменяемых токенах.
Стандарт ERC-1155 позволяет смешанное применение взаимозаменяемых, полузаменяемых и невзаимозаменяемых токенов. Рассмотрим их подробнее.
Стандарт токенов ERC-721 фактически положил начало феномену NFT. Этот стандарт был первым в своем роде. Хотя невзаимозаменяемые токены существовали уже давно, непосредственно стандарт ERC 721 открыл ворота для массовой популярности NFT. ERC-721 сыграл важную роль в представлении уникальных NFT общественности с помощью CryptoKitties.
CryptoKitties – NFT-игра, посвященная разведению одноименных коллекционных существ – CryptoKitties
Разработчик CryptoKitties, компания Dapper Labs, в 2017 году предложила ERC-721 для усовершенствования Ethereum или EIP (предложения по улучшению Ethereum). CryptoKitties – это набор уникальных, случайно сгенерированных котят – цифровых персонажей для коллекционирования. Следует отметить, что CryptoKitties полностью уникальны, их невозможно повторить. Кроме того, история транзакций дает четкое представление о владении котенком с момента его создания.
Важно отметить, что токены ERC-721 – это не только полная уникальность, но и следующие дополнительные характеристики:
ERC-721 фактически стал основным фактором повышения популярности NFT. Многие токены, основанные на этом стандарте, доминируют в криптовалютном ландшафте. Это художественные произведения, аватары, проекты PFP – группы аватаров и дробное владение виртуальными земельными участками.
What are ERC Token Standards?
The ERC token standards like ERC-721 and ERC 1155 offer explanations for different rules pertaining to ERC tokens on Ethereum. Most important of all, the Ethereum community contributes to amendments in the rules of the token standards after a comprehensive review. As of now, the three most popular ERC token standards include ERC-20, ERC-721, and now, the ERC-1155.
Excited to learn the basic and advanced concepts of ethereum technology? Enroll Now in The Complete Ethereum Technology Course
Why Should You Think of ERC 721 vs ERC 1155?
Ethereum has grown into a massive ecosystem of decentralized applications and web3 trends. As a result, development teams have to come up with new token standards. The earliest instances of token standards, such as the ERC-20 token standard, helped in defining the functionalities of traditional tokens. On the other hand, the ERC-20 token emphasized associating every asset with fungibility, thereby offering the functionality of fiat currency.
On the other hand, ERC 721 has been gaining notorious levels of attention in recent times. Why? The primary reason for the increased adoption of ERC-721 token standards is the growing hype around NFTs. Non-fungible tokens are everywhere in the tech world, starting from social media to crypto research papers. The ERC-721 token standard offers the right foundation for creating a customized, non-interchangeable token. For example, you can create a unique collectible trading card with the ERC-721 token or a completely unique personal avatar.
ERC 1155 come into the picture? The comparisons between ERC-721 and ERC-1155 are gradually becoming more significant for the future of crypto. You must notice how ERC-721 focuses only on non-fungible tokens. This is where the difference between ERC 1155 and ERC 721 becomes quite clearly evident.
The ERC-1155 token standard comes with a revised set of traits, which allows the mixed use of fungible and non-fungible tokens. Quite confusing, isn’t it? NFTs are gradually evolving as a major force in popular culture. Therefore, the token standards for creating and managing NFTs are obviously crucial aspects of their future. Developers can explore a wide range of options in the unique traits of the token standards for creating applications tailored to their needs.
Get familiar with the terms related to non-fungible token with Non-Fungible Token Flashcards
ERC-721 Token Standard
The first entry in an ERC 1155 vs ERC 721 comparison points at the latter. If you look closely, the ERC-721 token standard actually started off the NFT phenomenon. The standard was a first of its own kind and helped in creating unique tokens. While non-fungible tokens had been there for a long time, ERC 721 opened up the gates for the mainstream popularity of NFTs. ERC-721 standard played a vital role in introducing the unique NFTs to the public with CryptoKitties.
The developers of CryptoKitties, Dapper Labs, brought ERC-721 in 2017 with an Ethereum Improvement Proposal or EIP. The CryptoKitties is a set of unique, randomly generated kittens you can use as digital collectibles. You must note that the CryptoKitties are completely unique, and no one can replicate them. In addition, the transaction history offers a clear impression of the kitty’s ownership records since its creation.
ERC-721 token standard has actually served as a formidable force in driving the popularity of NFTs by huge margins. Interestingly, many NFTs based on the ERC-721 token standard have dominated the crypto landscape. Some of the notable examples of projects based on the ERC-721 token standard include NFT artwork or avatars, PFP projects, and fractional ownership in virtual land parcels.
Start learning Non-Fungible Token with World’s first NFT Skill Path with quality resources tailored by industry experts Now!
ERC-1155 Token Standard
The second player in the ERC 721 vs ERC 1155 token standard debate offers a practical solution to the different setbacks evident with ERC-721. The origins of the project go back to the Enjin Project, which introduced the token standard in 2019. One of the most striking highlights of the ERC 1155 token standard is the fact that it includes the best of ERC-20 as well as the ERC-721 token standard.
Enjin project focused on challenges associated with the ERC-721, especially the lack of flexibility for batch transfers. In the case of ERC-721 token standards, you would need individual transactions for each NFT while transferring multiple NFTs. As a result, the transactions can end up imposing high costs for trading each NFT individually.
The most notable aspect is the difference between ERC 1155 and ERC 721 focuses largely on support for batch transfers. ERC-1155 allows encompassing multiple assets in one smart contract, thereby enabling their transfer with limited network congestion and lower transaction costs. The next significant highlight of the ERC 1155 token standard is the support for non-fungible as well as fungible tokens. How? ERC-1155 offers the ability to support multiple states on a single contract and address.
On top of it, ERC-1155 also stands higher in the ERC 1155 vs ERC 721 debate for the ability to create semi-fungible tokens. The semi-fungible tokens would basically serve as fungible tokens during trading, and they would become NFTs upon being redeemed. Another notable aspect pertaining to the ERC-1155 token standard is the facility for reverting token transfers.
Become a member now to watch our on-demand webinar on Demystifying Non-Fungible Tokens (NFTs).
ERC-1155 Explained
First introduced in 2019, the ERC-1155 standard can represent and control both fungible and non-fungible tokens, even both at the same time. It is a hybrid of ERC-20 and ERC-721 while addressing their flaws and limited functionality.
For example, ECR-720 and ERC-721 require deploying a separate contract for every single item type (in the case of ERC-20), or collection (as per ERC-721).
Let’s say someone wants to buy a set of 10 NFTs. In order to transfer them from artist/owner to the buyer, you would have to execute 10 separate transactions, incurring 10 times the transaction fees and putting 10 times the load on the network.
ERC-1155 allows for much greater efficiency.
An ERC-1155 token is a single smart contract that can produce and manage an infinite number of tokens simultaneously. It allows each token ID to represent a new customizable token type, complete with its own metadata, supply and other attributes.
So, in the above scenario, you can simply transfer all 10 tokens in a single transaction which is not only faster, but leads to significant cost savings on Ethereum gas and reduced congestion on the network.
ERC-1155 also addresses the incompatibility issue between ERC-20 and ERC-721 tokens. Many dApps on the market utilize both, but since the contracts are created differently, management can become rather complex. ERC-1155 bridges that gap.
With an ERC-1155 token you can not only batch transfer, but get the balances of multiple assets in a single call, and approve all tokens to an address.
One of the most significant functions of the ERC-1155 is the Secure Token Transfer.
This helps verify if the transaction has been completed, and if not, it can reverse the transaction returning control of the tokens back to the issuer.
Both ERC-20, 721 and 1155 have all proven themselves as standards and which one you would use depends on your needs and preferences.
Резюме
Основополагающее различие между ERC 1155 и ERC 721 – ERC-1155 устраняет ограничения ERC-721. ERC-721 предлагает основу для невзаимозаменяемых токенов, а ERC-1155 имеет все неоходимые функции для работы с NFT.
ERC-1155 имеет явное преимущество в долгосрочных перспективах NFT. Феноменальная его особенность – внедрение возможностей полузаменяемых токенов и пакетных переводов NFT.
Криптовалюты и токены могут быть хорошим подспорьем и интересным занятием, но развивать собственный бизнес – это совсем другой уровень. Основа продвижения бизнеса в сети – сайт с подходящим доменом и надежным хостингом. Безопасность и стабильность обеспечат регистрация торговой марки и SSL-сертификат. Эти и другие продукты и услуги можно найти на NIC.UA.
ERC-721 против ERC-1155
Внедрение стандарта ERC-721 сделало сеть Ethereum более динамичной и позволило создавать новые инновационные решения. Разработчики могли бы использовать стандарт, чтобы, например, сделать рынок недвижимости более эффективным или добавить облигации на крипторынок. Однако, несмотря на то, что стандарт ERC-721 сделал сеть более динамичной, все еще можно было сделать разработку Ethereum еще более гибкой.
Контракты на токены ERC-721 предназначены для создания только одного определенного типа NFT, что в некоторых случаях ограничивает потенциал токена. Билеты на концерт являются примером этого, поскольку ограничения стандарта ERC-721 могут стать проблематичными. Создание NFT для этого означало бы, что контракт будет содержать идентификаторы мест, сопоставленные покупателям мест. Пока все идет хорошо; однако проблема возникает, когда у нас больше одного концерта. Если у нас будет несколько показов, то это будет означать, что нам нужно будет развертывать новый контракт токена ERC-721 для каждого нового события.
Однако для решения этой проблемы появился другой стандарт токенов. В частности, этот стандарт называется “ERC-1155” и является еще более динамичным. Благодаря стандарту токенов ERC-1155 возможно иметь несколько разных NFT в рамках одного смарт-контракта. Кроме того, также возможно добавлять больше NFT по мере продвижения. Это означает, что вам не нужно будет точно решать, какой NFT вы хотите включить при развертывании контракта. Таким образом, токены ERC-1155 намного более динамичны и могут иметь больше функций, чем стандарт ERC-721.
Однако недостатком такого динамизма является то, что токен ERC-1155 намного сложнее. Таким образом, мы рекомендуем новым разработчикам начать разработку токенов ERC721, поскольку с ними значительно проще иметь дело.
Читать еще: Как создать коллекцию NFT с помощью смарт-контракта
Как создать токен ERC721?
Теперь, когда мы немного лучше понимаем стандарт токенов ERC-721, мы можем более подробно рассмотреть процесс создания NFT ERC721. Создание NFT не должно быть таким уж сложным, и для выполнения этой задачи мы рассмотрим процесс создания DApp, который можно использовать для непрерывного создания NFT. Однако, поскольку цель этой статьи — просто объяснить, что такое токены ERC721 и как их передавать, мы не будем вдаваться в процесс слишком подробно.
Обычно процесс состоит из пяти этапов:
Реализация этих шагов приведет к созданию DApp, которое может выпускать более одного токена ERC-721. Предварительные навыки разработки обычно не требуются. Однако было бы предпочтительнее иметь некоторые предварительные знания о JavaScript и Solidity, поскольку это помогло бы в процессе разработки.
Тем не менее, эти шаги довольно просты, и если вы хотите взглянуть поближе, ознакомьтесь со статьей о том, как создать свой собственный NFT.
Читать еще: 11 сайтов для отслеживания самых популярных и трендовых NFT
What Does ERC Mean?
ERC stands for Ethereum Request for Comments. An ERC works in a similar way to the Internet Engineering Task Force, an open standards organization in which volunteer participants work to improve how the internet functions.
When a smart contract programmer wants to suggest a new standard, it can be presented to the Ethereum community as an EIP (Ethereum Improvement Proposal). The ERC will include application-level specifications, name registries, functions, formats and more. The Ethereum community will then review the proposed standard and can vote whether to accept or reject it.
Истоки создания ERC-1155 уходят к проекту Enjin, который представил стандарт токенов в 2019 году. Стандарт ERC 1155 включает в себя лучшее из стандартов ERC-20 и ERC-721:
Код для передачи токенов ERC721
Как вы можете видеть, на самом деле существует несколько строк кода, содержащих конкретную информацию, необходимую для передачи NFT. Итак, давайте посмотрим, что делает каждая строка кода. Сначала мы создаем новый объект, где указываем тип токена, который в данном случае будет ”ERC721”. Далее мы также укажем адрес получателя, по которому вы хотели бы передать токен ERC721. После этого мы также указываем адрес контракта вместе с идентификатором токена. Эта информация доступна через метаданные NFT.
Однако в приведенном выше примере нам нужно было ввести информацию о токене вручную. К счастью, можно создать DApp, которое позаботится об этом для вас и ваших пользователей.
Читать еще: Как отчеканить свой первый NFT и выставить его на продажу
ERC-721 vs ERC-1155
Token Support: ERC-721 only supports the creation of NFTs, while ERC-1155 not only supports the creation of NFTs but also fungible and semi-fungible tokens, facilitating the conversion of these types of tokens to NFTs and vice-versa. This flexibility is a significant advantage for ERC-1155.
Transaction Security: Unlike ERC-721, ERC-1155 has a transfer security function that enables hassle-free transactions and allows tokens to be reclaimed by the issuer if sent to the wrong address. This asset security capability also includes logging everything during a token’s lifecycle, from minting to burning.
Decentralized Exchange (DEX) Support: ERC-1155 is serviceable for a DEX because it has built-in code that supports a DEX by fulfilling certain smart contract aspects. ERC-721 has no such enhanced support capability.
Metadata Flexibility: Compared to ERC-721’s use of static metadata incorporated within a smart contract, ERC-1155 has more flexibility in maintaining countless Uniform Resource Identifier (URI) codes.
While ERC-721 is an effective token standard that has served a significant purpose, ERC-1155 brings greater efficiency, flexibility, and security, allowing savings in both time and cost. Existing non-ERC-1155 projects should migrate to the standard to experience expanded functionality.
Setting the Standards
Anyone can create and propose an ERC, but it must go through a thorough review, feedback, and revision process before being accepted by Ethereum’s development community.
Introduced in 2017, ERC-721 is a revolutionary token standard that set off the NFT phenomenon and became an NFT creation pillar in Ethereum’s ecosystem. The ERC-721 token standard has been a cornerstone for billions of dollars worth of NFTs. The token standard provides a standard interface for NFTs, and all tokens are unique. ERC-721 allows NFTs to be transferred between accounts, also making them tradeable for other currencies.
ERC-1155 improves upon the functionality of ERC-721, increasing its efficiency and correcting evident implementation errors. It can support an infinite quantity of tokens in a single contract, underpinning fungible, semi-fungible, and NFTs, which can transition between both of the former during its lifecycle.
NFT Marketplaces
NFTs have quickly ascended into being a massive industry. A report by TechNavio projects that the NFT market will register a growth of $147.24 billion between 2021 and 2026. NFTs have been prevalent in art, collectibles, and gaming, with growing potential for even more uses.
Unlike fungible (divisible and non-unique) tokens such as cryptocurrencies, NFTs cannot be traded directly. Their unique identifiers and metadata make equal exchange between them an impossibility. Therefore, they require a unique platform known as an NFT marketplace.
There are numerous types of NFT marketplaces, including:
Как передать токены ERC721?
С помощью разных платформ возможно передавать несколько различных типов токенов с помощью одной строки кода. Это легко достижимо, поскольку платформы предоставляет предварительно разработанные функции, которые могут пригодиться при разработке dApps или передаче токенов. Однако в этом примере мы просто рассмотрим подробнее, как передавать токены ERC721.
Прммер, как может выглядеть передачи код в документации:
What Are Tokens and Token Standards?
Before we get into the differences between ERC-721 and ERC-1155, we must first have a grasp of tokens, token standards, and ERCs.
What are tokens?
Let’s take a real-world analogy of a McDonald’s burger as a token. McDonald’s burgers are made to look and taste the same in every single McDonald’s restaurant all over the world. The standard recipe is what ensures this consistency. The recipe is the token standard.
So, a token standard is the recipe defining how a token is produced and how they act.
ERC-721 Explained
In January 2018, ERC-721 was proposed, opening up the possibility for smart contracts to serve as non-fungible tokens.
ERC-721 tokens are unique, indivisible, distinguishable, can represent a collection of assets, and can have a different value from other tokens even if they are part of the same smart contract.
These special characteristics are what enabled the NFT boom which kicked off in 2017 with the emergence of Cryptokitties, the first of many NFT collectibles.
The ERC-721 standard provides a wide range of functionalities such as:
For example, Binance Smart Chain and Tron, use the ERCs as a base, but adopt their own version. BEP-20/721 and TRC20/721 respectively.
