Cointime

Download App
iOS & Android

What Is ERC-4337

Validated Individual Expert

If you follow the latest in Ethereum news, you may have heard about the ERC-4337 standard announcement. If you haven’t, let us explain.

ERC-4337 sets a new standard for crypto accounts using smart contracts. They may seem familiar on the surface, but this contract standard allows for something very different from the smart wallets you might know thus far. These accounts have capabilities that may affect the wider Ethereum Ecosystem.

But hold on a minute. Smart wallets aren’t a new thing, right?

Correct! In fact, popular smart wallets such as Argent and Gnosis Safe existed long before ERC-4337’s inception. These wallets have similar capabilities, such as social recovery for those who lose access to their accounts. However ERC-4337 accounts can actually do much more.

But what is the ERC-4337 really about? Plus how do these wallets work compared to the smart wallets we are already familiar with? Let’s explore through what ERC-4337 smart wallets really mean for the Ethereum network.

Defining ERC-4337

ERC-4337 is a Smart Wallet standard on the Ethereum Blockchain. While the concept was proposed back in 2021, Yoav Weiss, an Ethereum Foundation developer, announced its availability for use at WalletCon in colorado on March 1, 2023. The standard can be deployed on any Ethereum Virtual Machine compatible blockchain and allows for a new Ethereum account capable of arbitrary verification logic.

If that sounds too technical for you, in short, this innovation allows you to perform complex actions straight from your wallet. Another key feature of these kinds of wallets is: they are not solely based on private key ownership, opting for a smart contract solution instead. That said, many smart wallets use mechanisms for validation that may still require a private key.

Put simply, it’s a way to make the user experience better, allowing users to customize how to pay transaction fees. While many have said ERC-4337 achieves account abstraction, that’s not exactly the case.

But to understand that, let’s first understand what account abstraction means.

What is Account Abstraction?

Account abstraction is a way to let people use smart contracts as their primary accounts, essentially creating “smart wallets”.

But it’s a bit more than that. Account abstraction aims to do a few important (and ambitious) things.

Firstly, it allows you to execute functions directly from your wallet. It also gives your wallet the “intelligence” to determine how much to pay for a transaction fee and who will pay it. Account abstraction also allows for more advanced security features. For example, it allows you to set up transactions that require multiple signatures.

Furthermore, recovery becomes a problem of the past: You can even recover your account without centralized help.

Perhaps most excitingly, account abstraction allows for quantum-safe cryptography, meaning even a quantum computer wouldn’t be able to hack the system.

The Difference Between ERC-4337 and Account Abstraction

Although ERC-4337 accounts allow you to execute functions and have more flexibility over who pays transaction fees, it does not achieve true account abstraction.

Ethereum founder Vitalik Buterin stated, “The big really valuable, and necessary thing that ERC-4337 provides for account abstraction is a decentralized fee market for user operations going into smart contract wallets.”

To explain, instead of allowing for true account abstraction, ERC-4337 is like a transaction relayer: It allows you to organize transactions in an off-chain order book, and then relay the final transaction to the blockchain.

True account abstraction will offer much more than that: It aims to change the way Externally Owned Accounts (EOAs) interact with the Ethereum blockchain itself.

However, these functionalities will require an upgrade to Ethereum’s whole consensus — which is no easy feat. While the ERC-4337 standard is an important step in the right direction, Ethereum account abstraction is still a way away.

ERC-4337 is used for…

Well, now you know that ERC-4337 is one step on the path to account abstraction. But what does it actually let us do? Some of the most exciting things about this standard include;

Performing Multiple Actions in One Transaction

Firstly the standard allows you to bundle multiple transactions together. This means you can set approval for, initiate and execute a trade all in one go, and it’s only possible due to “bundling”. This is great for traders and gamers specifically, who currently must sign multiple transactions just to carry out one action.

Performing One Transaction with Multiple People

There are a couple of instances you might want to share a transaction with your friends or family and ERC-4337 makes that possible.

Firstly, it allows you to set up a transaction that requires multiple signatures. So for example, you could set up a transaction that needs the signature of both you and your partner before validation.

The advancement also lets you share transactions in other ways. For example, while using ERC-4337 wallets you don’t always have to pay a gas fee., That’s because “sponsored transactions” are now possible, allowing another entity, such as a dApp or wallet provider, to pick up the transaction fee for you. To make it even easier, these wallets will also let you pay transactions with arbitrary tokens, such as ERC-20 tokens.

A more Seamless User Experience

The ERC-4337 standard allows for other functionalities too. For example, blockchain subscriptions will be possible, as the ERC-4337 standard can process automated and recurring payments. You can now set up a recurring payment to an online magazine or even a monthly coffee subscription using these types of accounts.

Additionally, you can set pre-approval and auto-approve transactions. This allows a more seamless experience for users, which is especially important for players of blockchain games.

Improved Security Measures

Finally, the ERC-4337 standard gives users more flexibility with their security. For example, it allows you to define rules regarding spending or approval. For example, you may want to limit the amount you can spend in a single transaction, within a single day, or even over a whole month. You can also use this standard to set up more complex methods to access your funds, requiring 2FA and a hardware wallet signature for transactions over a certain amount.

Like many smart wallets today ERC-4337 also has the power to let you recover your wallet.

If you lose access to your account, smart wallets use a feature called Social recovery. This is not a new concept. Argent is a good example of a smart wallet that allows specific people, called guardians, to help you regain access to your assets.

The ERC-4337 standard aims to allow you to do something similar in a more decentralized way. The idea is that each thing you interact with on the blockchain can now help provide a piece of proof of who you are, instead of having to rely on a centralized validator.

How Does ERC-4337 Work?

To explain the ERC-4337 smart wallet standard introduces a new object (a basic unit of data that contains information and allows certain functions) to the Ethereum network.

The new object introduced by the ERC-4337 standard is called “UserOperation”. When a user initiates a UserOperation, it’s sent to the mempool — a place where transactions go to be validated. This is an entirely separate mempool from the one used for processing transactions on the Ethereum mainnet.

Firstly, you must understand that all transactions on the Ethereum network must be triggered and paid for by an Externally owned Account (EOA). Using a separate mempool lets users bypass these rules without affecting Ethereum’s underlying system.

It has different requirements to the mainnet, meaning you have more flexibility with the details of your transaction.

Firstly, you can perform multiple transactions at once. But more importantly, anyone with an EOA, such as a wallet provider, can pay the fees on behalf of the user.

To explain, once the userOperations are bundled into an Ethereum mainnet transaction, they still require payment via an EOA. However, ERC-4337 defines a way where it doesn’t actually need to be the user themselves. This makes the process more efficient and minimizes user fees.

Comments

All Comments

Recommended for you

  • Xinjiang launches special campaign to combat illegal fundraising, with key areas including virtual currency, blockchain, etc.

    According to Chang'an Xinjiang Public Account, Xinjiang Autonomous Region and Corps have launched a joint special action to crack down on illegal fund-raising, with key areas including third-party wealth management, fake private equity, fake gold exchange and other traditional fields, as well as emerging fields such as virtual currency, blockchain, cultural tourism, film and television investment, and debt resolution services. It is reported that key cases include cases involving more than 100 million yuan and cases that have been criminally filed for more than five years.

  • A British court has postponed the final sentencing of Wen Jian, a British-Chinese national involved in the country's largest Bitcoin money laundering case, until May 24.

    On May 11th, it was reported that Jian Wen, a 42-year-old British Chinese citizen, was found guilty of "participating in arranging money laundering" in the UK's largest Bitcoin money laundering case. He could be sentenced to up to 14 years in prison. Jian Wen's defense lawyer, Mark Harries, stated that due to the judge's busy schedule, the UK court has postponed Jian Wen's final sentencing, which was originally scheduled for May 10th, to May 24th.

  • Web3 startup Star Nest completes $6 million in Pre-A round of financing

    Hong Kong Web3 music startup Star Nest announced that it has completed a $6 million Pre-A round of financing, led by Chuangqi International Limited, a wholly-owned subsidiary of Hong Kong Stock Exchange-listed company Guofu Innovation. Star Nest will collaborate with Armonia Meta Chain to develop the Star Nest SpaceStar metaverse game, which includes music, role-playing, and social features.In addition, Star Nest plans to launch its NEST project in the third quarter of 2024. Nest will receive 2.1 billion NEST tokens tailored for the project, and Star Nest will use the NEST token to build a more complete music industry token economic system. The NEST token will be widely used for purchasing performance tickets, chain game cooperation, metaverse consumption, governance voting, and other activities.

  • Over $594 million worth of PYTH is staked

    According to Dune data,  there are currently 1,201,167,362 PYTH tokens in the staked state, with a total staked value exceeding $594 million. The number of PYTH stakers has reached 151,211.

  • US Department of Justice: Tornado Cash indictment has nothing to do with "free speech"

    On May 11th, the US Department of Justice explained why the motion to dismiss the criminal case against Tornado Cash founder Roman Storm was invalid. The Department of Justice reiterated that their indictment was not related to whether the Tornado Cash computer code had freedom of speech or was protected by the First Amendment of the Constitution. The defendant was not charged for publishing computer code, but for using it to facilitate profitable illegal activities.

  • USDC circulation decreased by $100 million in the past week, with a total circulation of $33 billion

    According to official data,as of May 9th, Circle has issued approximately $2 billion USDC and redeemed approximately $2 billion USDC in the past 7 days, with a decrease in circulation of approximately $100 million. The total circulation of USDC is $33 billion, with a reserve of $33.1 billion, including approximately $3.3 billion in cash and Circle Reserve Fund holding approximately $29.8 billion.

  • SEC rejects Coinbase's request for appeals court ruling on cryptocurrency rules

    The US SEC has rejected Coinbase's request to appeal to the court to review whether traditional securities rules are applicable to cryptocurrencies. In its application, Coinbase stated that it hoped the appeals court would consider whether the Howey test, which has long been used for securities evaluation, should be applied to digital assets. However, the SEC pointed out that Coinbase has not successfully demonstrated the need for such an evaluation. The SEC stated that Coinbase is attempting to create a "new legal test," but this attempt was rejected by the court. The court found that Coinbase's arguments lacked consistency and did not successfully demonstrate the existence of decisive issues. Currently, the judge responsible for hearing the SEC's case against Coinbase will make a ruling on Coinbase's intermediate appeal motion.

  • Colombian President Suspected of Accepting $500,000 in Illegal Crypto Donations

    Colombian President Gustavo Petro is suspected of accepting over $500,000 in digital token donations from a fraudulent cryptocurrency project during his 2022 election campaign. A former contractor revealed that the illegal donation occurred during a meeting in February 2022 that discussed the advantages of cryptocurrency and the possibility of working with the government. This allegation is one of the latest charges faced by President Petro during his election campaign, with the Colombian Prosecutor's Office investigating his campaign last year.

  • Fed's Kashkari: The bar for another rate hike is high, but it cannot be ruled out

    The Federal Reserve's Kashkari expressed a cautious attitude towards restrictive monetary policy; he is adopting a wait-and-see attitude towards future monetary policy; he is in a wait-and-see state to see if inflation is stagnating; the threshold for raising interest rates again is high, but this possibility cannot be ruled out; if inflation data supports it, the Fed will maintain interest rates.

  • Blockchain Asset Management announces launch of a dedicated blockchain fund for accredited investors

    Blockchain Asset Management, a cryptocurrency fund with a scale of $100 million, announced the launch of an exclusive blockchain fund for qualified investors. The specific amount of funds raised by the fund has not been disclosed yet, but it is said to have reached "eight figures", which means it is in the tens of millions of dollars. In addition, the investment threshold for the new fund is $100,000, and all investors are required to meet the approved standards (annual income exceeding $200,000, net assets exceeding $1 million).