ERC-827
Last Updated: November 19, 2026
ERC-827 is an abandoned proposal to extend the ERC-20 token standard so that a token transfer or approval could also call another contract with extra data in the same transaction. Its own text later warned that it “is proven to be unsafe to be used”, and it never became an accepted standard.
Origin and Status
Augusto Lemble proposed ERC-827 for Ethereum on January 11, 2018, in GitHub issue #827 of the EIPs repository, titled “ERC827 Token Standard (ERC20 Extension)”. It stayed a draft and never reached the Final stage of the ERC process. The issue was later closed when the EIPs repository stopped using GitHub issues to discuss proposals.
How It Was Meant to Work
ERC-827 added functions such as transferAndCall and approveAndCall. Each one sent tokens or set an allowance and then executed a call with arbitrary data on the receiving contract. The goal was to let a token payment trigger an action, such as buying an item in a decentralized application (dApp), in one step instead of two.
Why ERC-827 Was Considered Unsafe
The core problem was the arbitrary call. Because the token contract itself made the call, any user could make the token call any function on any contract, with the token as the caller. Reviewers in the issue thread warned this could let attackers move tokens that other contracts held, or exploit exchange-style contracts that trusted calls coming from the token.
Other concerns raised in the thread were that the attached data could not be trusted to report the amount transferred and, from a ChainSecurity reviewer, that swapping ERC-20 for ERC-827 could open unexpected reentrancy attacks. The specification’s own guidance was to avoid fallbacks that take the transferred value as a parameter.
What Came After
Later designs pursued the same goal more carefully. ERC-1363 and ERC-223 notify the receiving contract through one defined function instead of allowing arbitrary calls. Many apps in 2026 still use the plain ERC-20 approve and transferFrom flow, often with signed permits under EIP-2612.
Limits and Risks
- The specification itself calls ERC-827 unsafe, so contracts built on it carry known design risks.
- Tokens that copied ERC-827 functions carry the same arbitrary call risk, even if they are labelled ERC-20.
The Problem ERC-827 Tried to Solve
Plain ERC-20 tokens make paying a contract awkward. A user first sends an approve transaction, then the contract pulls the tokens with transferFrom. That is two transactions and two fees. A plain transfer to a contract also sends no notice, so tokens sent straight to a contract that cannot handle them can be stuck for good.
The two-step flow also confuses users, who must understand that an approval gives a contract the right to move their tokens later. ERC-827 tried to merge these steps into one call. ERC-223 and ERC-1363 aimed at the same gap with narrower designs.
Lessons for Token Design
ERC-827 became a standard warning about external calls. A token should not let users make it call any address with any data, because other contracts may trust calls that come from the token.
Hooks can be risky even when they are defined. In April 2020, the lending protocol Lendf.Me lost about $25 million when an attacker used reentrancy through imBTC, a token built on the ERC-777 standard with transfer hooks.
Today, many apps avoid extra token logic. They use the standard approve flow, or signed permits under EIP-2612, which let a user approve spending with a signature instead of a separate transaction. A token labelled ERC-20 may still carry extra functions, so its verified source code on a block explorer is worth checking before approving a contract.
Frequently Asked Questions
Why is ERC-827 considered unsafe?
ERC-827 let a token contract make arbitrary calls to other contracts with data the user chose. Because those calls came from the token itself, attackers could make the token call functions it should never call, such as moving tokens held by other contracts. Reviewers also flagged reentrancy risks. Its own specification later warned that it is proven to be unsafe to use.
Is ERC-827 the same as ERC-223?
No. Both tried to fix ERC-20’s lack of receiver notifications, but in different ways. ERC-223, which is marked Final, requires receiving contracts to implement a tokenReceived function and rejects transfers to contracts without it. ERC-827 instead let senders attach arbitrary calls to transfers and approvals, which is the feature that made it unsafe. ERC-827 never became a standard.
What is approveAndCall?
approveAndCall is a function pattern that sets an ERC-20 allowance and then calls the spender contract in the same transaction. ERC-827 included a version that could pass any data to any contract, which made it unsafe. Some older tokens used narrower versions that call one fixed function on the spender. Each token’s code should be checked before relying on it.
Sources: GitHub issue ethereum/EIPs #827 and its discussion, eips.ethereum.org EIP-223 (read November 16, 2026).