Back
ERC-20
What is ERC-20?
ERC-20 is a technical standard used for smart contracts on the Ethereum blockchain for implementing tokens. ERC stands for "Ethereum Request for Comment," and 20 is the number assigned to this request. The ERC-20 standard defines a common list of rules that an Ethereum token has to implement, allowing developers to accurately predict interaction between tokens.
Key Features
Standardization: Provides a uniform way to create tokens on Ethereum.
Fungibility: ERC-20 tokens are typically fungible, meaning each token is equivalent to another.
Interoperability: Allows easy integration with wallets, exchanges, and other smart contracts.
Defined Functions: Includes standard functions like transfer, balanceOf, approve, and transferFrom.
Events: Defines events that must be triggered during token transactions.
Required Functions
totalSupply(): Returns the total token supply.
balanceOf(address): Returns the account balance of an address.
transfer(address, uint256): Transfers tokens to a specified address.
transferFrom(address, address, uint256): Transfers tokens from one address to another.
approve(address, uint256): Allows a spender to withdraw tokens from your account.
allowance(address, address): Returns the amount of tokens approved for a spender.
Advantages
Wide Adoption: Most popular token standard on Ethereum.
Ease of Use: Simplifies the process of creating and managing tokens.
Liquidity: Easy to list on exchanges due to standardization.
Developer Friendly: Well-documented and widely supported in development tools.
Limitations
Limited Functionality: May not be suitable for more complex token structures.
Gas Inefficiency: Each token transfer requires a separate transaction.
Lack of Metadata: Does not inherently support metadata for tokens.
Accidental Burns: Tokens can be lost if sent to the contract address directly.
Similar Terms
ERC-721: A standard for non-fungible tokens on Ethereum.
ERC-1155: A multi-token standard that combines features of ERC-20 and ERC-721.
Ethereum: The blockchain platform that EIPs are designed for.
Smart Contract: The underlying technology that enables ERC-20 tokens.
595 Broadway, Floor 4
New York, NY 10012
+1 201-690-7206
ChainFi Inc (dba "Arch") is not a bank. ChainFi Inc (NMLS #2637200) provides certain financial services.
Crypto backed loans are offered to U.S. borrowers by ChainFi Inc and are not available to U.S. residents of AL, CA, DE, HI, ID, IL, LA, MI, MN, MS, MT, NV, ND, OH, RI, SC, SD, TN, TX, VT, VA, or WA or to U.S. businesses in CA, DC, HI, LA, MI, MT, NV, NM, ND, RI, SD, TN, UT, or VT.
© 2024 All Rights Reserved