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
 
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
 
stormi_kim profile image
Stormi Kim

When you're really in demand of the most reliable asset recovery professionals as I recently did, well, here's my counsel. Montgomery Elites pros, needless to say, will recover cryptocurrency from online thug you might've entrapped yourself with. The current field is overflowing with swindlers left and right. I invested with one of them as they requested each step of the way but come a few weeks, I realized my account had been frozen. I'll see the profits adding but I absolutely can't withdrawal nothing! I'm just lucky to have had some knowledge about montgomery elites’ for they did help me recover about $47,000 from them. With emphasis, to anybody who need to hear this that they'll successfully retrieve your stolen assets. Email montgomeryelites(@)contractor. net!
Image description

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
 
louispatel profile image
Louis Patel

Fallen A Victim Of A Crypto Scam? - Recover Your Funds Right Now

Wassup Folks,
I genuinely hope this finds you well.
I wanted to share some wonderful news with you today: with the assistance of Captain WebGenesis, I just recovered my lost Crypto worth $74,000 that was stolen by scammers. It all started earlier this month, when I received an email from a stranger advertising a bogus Bitcoin investment opportunity. I fell for his fake promises and invested with the company. Fortunately, with the assistance of Captain WebGenesis, I was able to detect the fraud before it was too late. The Expert was able to retrieve the funds promptly and efficiently, and I am truly grateful for His knowledge and assistance. If you ever find yourself in a scenario like this, I highly suggest Captainwebgenesis@hackermail.com. The Expert's assistance was crucial.
WhatsApp; +1,2,0,5,3,3,6,1,0,2,0,

Best regards,

Collapse
 
byson25 profile image
Manuel Byson

YOU CAN RECOVER YOUR STOLEN CRYPTO ASSETS FROM SCAMMERS
Scam is a pandemic and unfortunately, I happened to be a victim of that pandemic, I was contacted on Instagram by a scammer who posed as a crypto investor. He introduced me to his platform where he trades cryptocurrency for people, All you had to do was subscribe to an investment plan for a certain duration, and at the end of that duration you withdraw your profits, he was really convincing, to be honest. I eventually went through his platform's page on Instagram and everything seemed and looked so genuine, I even saw posts of people testifying about how the platform transformed and skyrocketed their financial lives. I still don't understand how they get people to make such false testimonies just to convince people to invest. Well, I subscribed to an investment plan and all I had to do was wait till the end of the duration to withdraw my profits but unfortunately, when my profits became due I couldn't make any withdrawals. I contacted the guy and to my surprise, he blocked me that was when it dawned on me that I had been scammed. I became furious but very helpless because there was nothing I could do. After two weeks I came across an article on how a hacker helped a man recover his funds from his locked blockchain account, I figured maybe he could do the same for me but I was skeptical about it because I thought "What if it was just another scammer posing as a recovery hacker" but I eventually gave in and went ahead to contact via his email getbackyourasset @ gmail . com. I explained to him and he told me how long it would take for him to recover my stolen funds and to my amazement he did as he said even before the time duration.
Guys you should contact Eric Nelson for all funds recovery-related problems and also other hacking services, he is so real, here is his email again getbackyourasset @ gmail . com

Collapse
 
kath477 profile image
Katherine Davies

You have been hacked of your crypto assets, you are a victim of fraud?...now you wonder if you can recover back your cryptocurrency. Is very possible to recover your cryptocurrency I have been down that road before, I was defrauded of my Bitcoin worth $35,000, and it was a terrible time for me...Long story cut short, I was able to come in contact with a reliable recovery expert team via an article I read online about cryptocurrency, they were able to follow up on my case and recover my stolen crypto assets, I was very happy with their services...if you have been a victim of online fraud either bitcoin fraud, binary options fraud or any form of fraud contact getbackyourasset at gmail dot com they are so reliable and professional. NO UPFRONT PAYMENT

Collapse
 
erica32 profile image
Erica Dennis

Months ago, a fellow approached me on Instagram, Introducing me to some type of investing, Although I have heard of cryptocurrency, Bitcoin, Ripple, and a few others, I basically don't know how it works, I was somewhat convinced by this fellow to invest in their trading platform, after giving it a thought, I decided to invest in this trading platform, I invested about $20,000 during the first month of my Investment, My profit soars high to about $50,000 and I decided to withdraw my funds, hoping I can re-invest with my profits. I was unable to withdraw and was asked to make deposits after deposits for me to withdraw. I figured out it was a scam and decided to get my funds back, It wasn't an easy task, I was defrauded by some recovery companies too, I was on the verge of giving up when I decided to give my luck one more shot, I reached out to one of the emails I had seen online of an expert in funds recovery, I emailed Eric Nelson, an expert recovery hacker and he was absolutely helpful, with the help of Eric Nelson, I was able to recover all my invested funds from the trading platform and my profits included. Contact them at getbackyourasset @ gmail . com if you are faced with the same situation.

Collapse
 
kath477 profile image
Katherine Davies

You have been hacked of your crypto assets, you are a victim of fraud?...now you wonder if you can recover back your cryptocurrency. Is very possible to recover your cryptocurrency I have been down that road before, I was defrauded of my Bitcoin worth $35,000, and it was a terrible time for me...Long story cut short, I was able to come in contact with a reliable recovery expert team via an article I read online about cryptocurrency, they were able to follow up on my case and recover my stolen crypto assets, I was very happy with their services...if you have been a victim of online fraud either bitcoin fraud, binary options fraud or any form of fraud contact getbackyourasset at gmail dot com they are so reliable and professional.

Collapse
 
liam0147 profile image
Liam Bucharo

I'd like to bring to the attention of this platform (Pocket Option) the recent act of account blocking that's been carried out by the outfit pocket option. They blocked my account for some weird reasons without proof. I made a trade, staking $100,000 and made a profit of $72,000, that's a total of $172,000. On trying to withdraw my funds my account was blocked immediately claiming that I violated their policy!! I was stunned. I sent mails, but all efforts failed. A few days later, I recovered my money with the help of a triangulation expert. OptivCuperation Tech is the best tech expert you need to help you recover your scammed or lost funds. They are best in dealing with online scam and assisting victims in receiving reimbursement, tracking down digital fingerprints, cyber analysis and thorough investigation. They can be reached via email at: optivcuperation@gmail.com

Collapse
 
nurali profile image
Nurali Vizirov

I remember how depressed I was when I lost my money from the coinfx crypto investment scheme. I withdrew the first and second time, and I invested more money. It was during my third withdrawal attempt that it collapsed, and my money was gone. I refused to give up,rather, I went online to search on how to recover lost Cryptocurrencies. Upon my search, I saw reviews on (hackingprofessional3Atg m a i l Dot c [o]m). I contacted him,provided all he requested, and now my coins are back in my wallet.

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