DEV Community

Cover image for Ξ What are Ethereum request for comments (ERC) Standards
Vedant Chainani
Vedant Chainani

Posted on

Ξ What are Ethereum request for comments (ERC) Standards

What are ERC Standards?

An ‘Ethereum Request for Comments’ (ERC) is a document that programmers use to write smart contracts on Ethereum Blockchain. They describe rules in these documents that Ethereum-based tokens must comply with.

The Ethereum community uses a process called the ‘Ethereum Improvement Proposal’ to review these documents. They comment on it and as a result of that, the developer that created the document may revise it.

The Ethereum community accepts some of these documents after working through the EIP process, finalizes it, and then developers implement it. This is how the document becomes an ERC. In other words, ERCs originate as EIPs and could address different areas, for e.g., tokens, registration name, etc.

While there are several Ethereum standards. These ERC Ethereum standards are the most well-known and popular –

  • ERC - 20
  • ERC - 721
  • ERC - 1155
  • ERC - 777

ERC 20 standard – The Most Popular Token Standard

The ERC-20 introduces a standard for Fungible Tokens, in other words, they have a property that makes each Token be exactly the same (in type and value) as another Token. For example, an ERC-20 Token acts just like the ETH, meaning that 1 Token is and will always be equal to all the other Tokens.

The ERC-20 token standard allows developers to create their own tokens on the Ethereum network. It has provided an easier route for companies to develop blockchain products instead of building their own cryptocurrency.

Some tokens, like Uniswap's UNI token, are set to remain ERC-20 tokens; other cryptocurrencies, such as Binance Coin, have since jumped over to their own blockchains.

These tokens are:

  • 💻 Fungible - The code of each individual token is the same as any other, though transaction histories can be used to identify and separate out the tokens involved.
  • 🛫 Transferable - They can be sent from one address to another.
  • ⛏️ Fixed supply - A fixed number of tokens must be created so that developers cannot issue more tokens and raise the supply.

Since the ERC-20 token standard was finalized, over 500,000 tokens compatible with ERC-20 have been issued. Some of the leading ERC-20 tokens include:

  • 🦄 Uniswap (UNI) - A decentralized exchange (DEX) that enables users to swap tokens peer-to-peer, without relying on a centralized intermediary.
  • 👾 Decentraland (MANA) - The token underpinning metaverse platform Decentraland, MANA is burned in order to acquire non-fungible LAND tokens representing plots of virtual land.
  • 🦍 ApeCoin (APE) - The utility and governance token for the Bored Ape Yacht Club ecosystem, based on the popular PFP (profile picture) NFT collection.

Disadvantages of ERC-20 tokens?

  • ⚠️ Low throughput - The Ethereum network has been clogged up when dapps have experienced high demand, such as CryptoKitties (which has since moved to its own Flow blockchain). When this happens, the network slows down and transactions become more expensive.
  • 🐢 Slow transactions - The block time is around 14 seconds, so transactions can take up to a minute to process. This may be adequate for some uses or too slow for others.
  • ⏲️ ETH - When transactions are made involving ERC-20 tokens, a second cryptocurrency is needed to pay for the transaction fees. This can add both time and cost, as it can result in dust on different platforms.

ERC 721 – The Standard for Non Fungible Tokens

ERC-721 is a token standard on Ethereum for non-fungible tokens (NFTs). Fungible means interchangeable and replaceable; Bitcoin is fungible because any Bitcoin can replace any other Bitcoin. Each NFT, on the other hand, is completely unique. One NFT cannot replace another.

The main characteristic of ERC-721 tokens is that each one is unique. When an ERC-721 token is created, there is one and only one of those tokens in existence. These tokens, as NFTs, have spread the idea and application of unique assets on Ethereum.

What can you do with ERC-721 NFTs?

Today, the most common use case for ERC-721 NFTs is for digital art. Users buy these NFTs for a number of reasons, including supporting artists, investing long-term in hopes that the price will go up, quickly flipping/trading NFTs for a profit, or simply because they like the artwork.

However, use cases for NFTs extend beyond digital art.

NFTs are commonly used in blockchain-based games, such as Gods Unchained, to represent unique assets within the game. The online collectible card game uses NFTs to represent digital cards, which can then be traded with other players or used in battles. Some blockchain-based games even let you move your items over to different games. This is the beginning of the Metaverse, a persistent virtual environment in which NFTs represent digital objects that can be moved between different platforms.

Music NFTs are also becoming increasingly popular. Platforms such as Audius make it easy for artists to mint their work as ERC-721 tokens.


ERC-1155 - Ethereum’s Flexible Token Standard

Prior to ERC-1155, the two predominant token standards were ERC-20 for fungible tokens and ERC-721 for non-fungible tokens. They could not (and cannot) be wrapped into the same smart contract. This limitation meant that if someone wanted to transfer, say, USDC (ERC-20) and a CryptoKitties NFT (ERC-721), they would need to execute multiple transactions, which was inefficient and expensive.

ERC-1155 solves for this by combining the two token standards. ERC-1155 is a token standard that enables the efficient transfer of fungible and non-fungible tokens in a single transaction.

How does ERC-1155 work?

The initial motivation behind ERC-1155 was to address challenges faced by blockchain game developers and players.

Massively multiplayer online games (MMOs) contain tens of thousands of items—armor, weapons, shields, skins, coins, badges, castles, etc—that players can collect and trade with one another. Some items like coins are fungible while others like a sword are non-fungible. On the blockchain, each one of these items is a token.

Prior to ERC-1155, each item required its own smart contract. In a game with 100,000 items that means 100,000 smart contracts!

With an ERC-1155 token, multiple items can be stored in a single smart contract and any number of items can be sent in a single transaction to one or more recipients. This means if you wanted to send a sword to one friend, a shield to another, and 100 gold coins to both, you could do so in only one transaction.

What's so special about ERC-1155?

As well as allowing for the transfer of multiple token types at once, and the attendant gains in efficiency and lower transaction costs, ERC-1155 has a number of other special characteristics:

  • It supports an infinite number of tokens, in contrast with ERC-20 and ERC-721, which require a new smart contract for each type of token.
  • It supports not only fungible and non-fungible tokens, but also semi-fungible tokens. Semi-fungible tokens are like general admission concert tickets. They are interchangeable and can be sold for money before the show (fungible). But after the show they lose their pre-show value and become collectibles (non-fungible).
  • It has a safe transfer function that allows tokens to be reclaimed if they are sent to the wrong address, unlike ERC-20 and ERC-1155
  • It removes the need to "approve" individual token contracts separately, which means signing fewer transactions

Who's using ERC-1155?

  • 🎮 Enjin - Enjin offers a number of blockchain products, many of which implement ERC-1155.
  • 🕹️ Horizon - Horizon is a blockchain games company whose Skyweaver game uses ERC-1155.
  • 🖼️ OpenSea - The NFT marketplace's ERC-1155 implementation allows multiple creators per smart contract but only one creator is able to mint more copies.
  • 🎈 OpenZeppelin - OpenZeppelin's blockchain security products leverage the ERC-1155 standard.

ERC 777 – Reduces Friction in Crypto Transactions

ERC-777 is a token standard for fungible tokens introduced on the Ethereum network that is fully compatible with existing decentralized exchanges.

It facilitates complicated token trade interactions and assists the removal of ambiguity around decimals, minting, and burning. It utilizes a distinctively effective feature called a hook.

A hook is simply a function in a contract that is called when tokens are sent to it, meaning accounts and contracts can react to receiving tokens.

When tokens are delivered to a computer-based analytical contract, it activates a hook mechanism that streamlines how accounts and contracts communicate when receiving tokens. Furthermore, ERC-777 tokens are significantly less likely to get stuck in a contract, which is traditionally seen as a problem with ERC-20 tokens.

Hooks are programmed into the standard. If you transfer ETH to a smart contract, it will be alerted about the incoming ETH through the hooks, a feature that ERC20 tokens don’t have. The following are the benefits of this standard:

  • The ERC777 standard is backwards compatible with ERC20, meaning you can interact with these tokens as if they were ERC20, using the standard functions
  • ERC-777 enables anyone to add extra functionality to tokens, such as a mixer contract, for greater transaction confidentiality, or an emergency recovery feature to help you if you lose your private keys.

Top comments (47)

The discussion has been locked. New comments can't be added.
Collapse
 
karenarthur1 profile image
Karen Arthur

Retrieve Lost or Stolen Bitcoin funds With Cyber Asset Recovery

Most adverts are fraudulent; when you pay, nothing appears because I have had so many bad experiences with some recovery company until one day I was able to chanced upon an article in the Local News about Cyber Asset Recovery, a trusted and reliable firm that helps victims of online scams to recover their funds, and that was how my nightmares ended. Thanks to Cyber Asset Recovery for all the good work. If you need a legitimate cryptocurrency recovery or hacker, contact Cyber Asset Recovery. Finding them took me more than a year and that's why I decided to share their contact here for those that need a legitimate cryptocurrency recovery or hacker.

Email address: Cyberassetrecovery@protonmail.com

Telegram: +1 818 698 3869

Collapse
 
christopheraaronnicholas profile image
Info Comment hidden by post author - thread only accessible via permalink
christopheraaronnicholas

One has to be wary of fake investment companies online these days.I was a victim of an investment scam.I lost $70K to a scam broker.However,I was able to recover all my funds with the help of ProAssetRecoveryExpert. Contact Proassetrecoveryexpert@gmail.com if you have issue getting your money from a scam company.

Collapse
 
domlee profile image
Dominic

Bitcoin theft is on the rise, as hackers and cyber criminals become more sophisticated in their nefarious endeavors. With the exponential growth of cryptocurrency, it has become an attractive target for those looking to make a quick buck at the expense of unsuspecting investors. The impact of Bitcoin theft can be devastating, both financially and emotionally. Remember, should you ever find yourself in the unfortunate position of having your Bitcoin stolen, don't lose hope. Reach out to the Grayhathacks and let them work their magic to bring your Bitcoin back home. When my bitcoin was stolen, I felt a sinking feeling in the pit of my stomach. It seemed like all hope was lost, until I came across Grayhathacks. Intrigued by their claims of being able to recover stolen cryptocurrencies, I decided to give them a shot. After all, what did I have to lose? Working with Grayhathacks was a breeze. Their team of experts guided me through the recovery process with utmost professionalism and expertise. They took the time to understand my case, asked the right questions, and swiftly got to work on retrieving my stolen bitcoin. Their collaboration with me throughout the entire process made me feel like I was in safe hands. I can assure you of a 100 percent success rate if you involve Grayhathacks to assist you. For information, email: grayhathacks@contractor.net
Thank you.

Collapse
 
norbert profile image
kacper

How do these magicians do their magic, you ask? Well, it's a blend of the latest advances in technology and a thorough knowledge of the nefarious arts of the internet. The Saclux Comptech Specialst team embarks on an arduous investigation, analysis, and teamwork procedure to tackle the seemingly unachievable challenge of retrieving misplaced Bitcoin. Similar to a digital treasure hunt, except with a group of geeks gathered around computers in a dimly lit workplace rather than a pirate ship. They work nonstop until your missing Bitcoin is recovered in your virtual wallet, utilizing a variety of strategies from partnering with law enforcement and cybersecurity agencies to using advancing equipment. One of the key factors behind the high rate of Bitcoin recovery achieved by Saclux Comptech Specialst is the exceptional expertise and experience of their team. These individuals eat, sleep, and breathe all things Bitcoin and have dedicated years to mastering the art of digital sleuthing. With their extensive knowledge and deep understanding of the inner workings of cryptocurrencies, they bring a level of wizardry to the table that few can match. To complete the task, these tech Comptech don't merely rely on good fortune or a dash of fairy dust. To find the indications that lead to your stolen Bitcoin, they use cutting-edge tools and techniques, closely examining digital footprints and examining blockchain transactions. To a sneaky hacker, he had made away with my bitcoin, but after I sort the assistance of Saclux Comptech Specialst, my lost bitcoin was recovered back to me within a few working days. Saclux Comptech Specialst are bitcoin magicians. You can reach out to them via:
sacluxcomptechspecialst@engineer.com  
Viber: +44 7782 645302
Thanks.

Collapse
 
pascalrabourdin5 profile image
Pascal Rabourdin

It would be morally wrong for me, not to share my sad investment experience and my happy ending. I am a private person so I will keep my review brief. There are a lot of people who have or are suffering from fraudulent crypto scammers. I was there too but after my encounter with Cyber Genie Hack Pro, they made sure I had a happy ending ensuring they recovered my stolen cryptocurrency. I never thought recovering stolen cryptocurrency was a myth or another means for scammers to rip you off until I met Cyber Genie Hack Pro. They are the miracle I have been praying for since the day I realized I had been conned of my hard-earned crypto tokens. They can be reached via:
Cybergenie(@)Cyberservices(.)Com
cybergeniehackpro.xyz/
w/a...+*12*52*51*203*91
Image description

Collapse
 
pessina profile image
stefano

I want to take this opportunity to express my gratitude to Century Hackers and their team of high tech hackers. Recently, I became a victim of internet scammers who presented themselves as competent and experienced companies in the field of cryptocurrency investments. I fell for the promise of high returns little did I know that they were conning me a sum of $330,900 leaving me depressed and desperate. During my search for a reputable and genuine recovery service, I discovered Century Hackers and the great reviews and testimonies from different people on various websites. I decided to try them out and from the moment I engaged with them my confidence in their abilities and recovery of my money was reinforced. I was able to retrieve my lost funds within 48 hours and also expose the fraudsters. I am truly happy with their services and sincerely hope this information proves valuable to whoever needs it. You can reach them via century@cyberservices.com
website: centurycyberhacker.pro/ or Telegram @Marvels109

Collapse
 
glenn52 profile image
Roderick Glenn

Picture this, you're staring at your computer screen, your heart sinking as you realize that your hard-earned Bitcoin has mysteriously vanished into the digital abyss. It's a moment of panic, frustration, and perhaps even a touch of regret for not backing up your wallet properly. Losing Bitcoin has become an all-too-common dilemma in the world of cryptocurrency. Whether it's due to human error, technical malfunctions, or the nefarious deeds of cybercriminals, countless individuals find themselves facing the harsh reality of lost funds. But fear not, for there is hope on the horizon because Coder Cyber Services is here to ensure that your lost bitcoin is restored back to your wallet. With an affordable rate, Coder Cyber Services will help you get back your bitcoin and you will be happy you contacted them.
Visit their page codercyberservices.info to know more about them or email codercyberservices@tech-center.com,.

Thank you.
Image description

Collapse
 
gailhatfield633 profile image
Gail Hatfield • Edited

I am overwhelmed with so much joy, Hackwest(@)writeme(.)com added over 200 points to my credit score after I contacted him early this month. West got rid of the derogatories, collections, eviction and bankruptcy that messed my credit score up. But I am glad I have an excellent report and I am free to apply for any kind of loan and high limit credit cards. Feel free to write Hack West via the above email and thank me later.

Collapse
 
finelylouie profile image
Finely Louie

Don't be fooled by the wily tricks of scammers lurking in the crypto realm! Stay vigilant and educate yourself about common Bitcoin scams, such as fake giveaways, pyramid schemes, and phishing attempts. If something sounds too good to be true, it probably is! Trust your instincts and never share your private information or send Bitcoin to unknown individuals. After all, even wizards can't undo a foolish mistake! As the realm of cryptocurrencies continues to expand, so does the need for robust security measures and reliable recovery services.
www . prowizardgilbertrecovery . xyz impressive track record in successfully recovering lost Bitcoin distinguishes them as a trusted and proficient player in the field. I lost a huge amount having tried to invest with the wrong platform. I worked with a couple of recovery agents to help me get back my funds but I kept on losing more money that I got no positive result from. Through recommendation having looked everywhere, I got to connect with Pro Wizard Gilbert Recovery which is a team of tech experts in bitcoin. I discussed my entire condition to them and they hit the ground running. To my greatest belief, Pro Wizard Gilbert Recovery has been able to recover my lost amount. They really and truly have the idea, experience, and tools people who they have worked for always say. I am glad I came in contact with Pro Wizard Gilbert Recovery after I have lost so much. I am sincerely grateful. Reach out to  Pro Wizard Gilbert Recovery to help you so you don't lose your hard earned income.
Email: prowizardgilbertrecovery(@)engineer.com WhatsApp: +1 (361) 418‑1326

Collapse
 
savannascott42 profile image
Savanna Scott

My gratitude goes out to **HACKWEST AT WRITEME DOT COM **for fixing my credit report and clearing all the negatives, collections, charge offs, electricity and phone bills as well as the student loans that ruined my credit. I tried few people before a friend recommended Hack West after showing me how he got helped by West. My 70,000 USDT that I lost to an investment scam was also recovered by West. I now enjoy an excellent credit report and a life devoid of debts. If you need similar help you can write via the above email address and thank me later.

Some comments may only be visible to logged-in visitors. Sign in to view all comments. Some comments have been hidden by the post's author - find out more