Qaynaq LABS · TOOLS

CRYPTO GLOSSARY

ERC-777 token standard

A token standard on Ethereum that improves upon ERC-20 by adding advanced features like hooks for contract interaction and backward compatibility, while maintaining a simpler interface for users.

Technical definition

ERC-777 is an Ethereum token standard (EIP-777) designed to enhance the ERC-20 standard by introducing a more robust and flexible interface. It allows tokens to interact directly with contracts through 'send' and 'receive' hooks, enabling features like automatic token minting or burning during transfers. ERC-777 tokens are backward compatible with ERC-20, meaning they can be used in systems designed for ERC-20 tokens without modification. The standard also introduces the concept of 'operators'—addresses that can manage tokens on behalf of the owner, akin to approved spenders in ERC-20 but with broader permissions. Transactions in ERC-777 are more gas-efficient for certain operations and include built-in mechanisms for handling errors during transfers.

An analogy

Imagine a bank account (ERC-20) where you can only deposit or withdraw money, and the bank doesn’t notify you when someone sends you funds. ERC-777 is like upgrading to a smarter account where the bank not only notifies you of incoming transfers but can also automatically trigger actions (e.g., converting foreign currency) when money arrives, all while still working with old-style accounts.

Why it matters

ERC-777 addresses key limitations of ERC-20, such as the lack of direct contract interaction and the risk of lost tokens due to failed transfers. It enables more complex token behaviors and reduces the need for workarounds like approvals for every transaction, making it easier to build advanced decentralized applications.

Where it came from

ERC-777 was proposed in 2017 (EIP-777) and finalized in 2019 as a successor to ERC-20. It was developed by Jacques Dafflon, Jordi Baylina, and Thomas Shababi to address the shortcomings of ERC-20, particularly in the context of decentralized exchanges and automated token behaviors.

Example in practice

A decentralized exchange (DEX) using ERC-777 can automatically convert tokens into another asset upon receipt, without requiring users to manually approve each step. For example, if a user sends ETH to a smart contract that manages a liquidity pool, the contract can immediately swap the ETH for the pool’s tokens and credit the user’s balance—all in a single transaction.

Common misconceptions

  • ERC-777 is a replacement for ERC-20 → It is designed to coexist with ERC-20 and is backward compatible, not a replacement.
  • ERC-777 is more widely adopted than ERC-20 → ERC-20 remains the dominant standard due to its simplicity and widespread tooling support.

Risks & limitations

  • Backward compatibility issues: While ERC-777 is designed to work with ERC-20 systems, some edge cases or poorly implemented contracts may still fail to interact correctly.
  • Complexity risks: The added features (e.g., hooks, operators) increase the attack surface for smart contract bugs, such as reentrancy vulnerabilities or unintended token transfers.
  • Adoption barriers: Limited tooling and developer familiarity compared to ERC-20 can slow adoption, leaving ERC-777 tokens underutilized in many ecosystems.
  • Gas costs: While some operations are more efficient, others (e.g., complex hooks) may increase gas usage unpredictably.

Related terms

About "ERC-777 token standard" in crypto

Cryptocurrency vocabulary moves faster than any other technical field. New terms appear weekly, old terms quietly change meaning, and most "definitions" online were written by someone trying to sell you something. Qaynaq Labs' crypto glossary aims for the opposite: neutral, accurate, skeptical explainers that include the downside.

This entry covers the technical mechanics, a real-world analogy, where the concept came from, and what could go wrong. Pair it with the related terms to build a working mental model of how the pieces fit together.

Frequently asked

Can ERC-777 tokens be used in wallets that only support ERC-20?

Yes, ERC-777 tokens are backward compatible with ERC-20, so they can be stored and transferred in wallets that support ERC-20. However, advanced features like hooks may not work in such wallets.

How does ERC-777 handle failed transfers compared to ERC-20?

ERC-777 includes built-in mechanisms to handle failed transfers (e.g., by reverting the transaction and refunding the sender), whereas ERC-20 transfers that fail (e.g., due to insufficient balance) may result in tokens being lost if not handled properly by the contract.

What are 'operators' in ERC-777, and how do they differ from ERC-20 approvals?

Operators in ERC-777 are addresses that can manage tokens on behalf of the owner, similar to approved spenders in ERC-20 but with broader permissions. Unlike ERC-20, where approvals are per-transaction, ERC-777 operators can be granted permanent permissions (e.g., for automated services like staking pools).

Is ERC-777 more secure than ERC-20?

ERC-777 introduces additional features that can improve security (e.g., better error handling for transfers), but the added complexity also introduces new risks (e.g., smart contract vulnerabilities in hooks or operators). Security depends on the implementation, not the standard itself.