Review and sign transactions from a single secure screen with Ledger Flex™

Discover now

Up your Web3 game

Ledger Academy Quests

  • Test your knowledge
  • Earn POK NFTs
Play now See all quests

Ethereum’s ERC-4337 Standard: Explained

Read 6 min
Medium
Coins spiraling in a circle
KEY TAKEAWAYS
— Ethereum’s ERC-4337 standard makes it easier to design interoperable smart wallets.

— The ERC-4337 standard is commonly misconceived as achieving account abstraction, instead, it defines a decentralized relay network.

— While smart wallets already existed, this ERC-4337 standard allows for new capabilities which will improve user experience. 

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, as Ledger Academy takes you through what ERC-4337 smart wallets really mean for the Ethereum network.

What is 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 wallet 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. 

ERC-4337 Vs Account Abstraction: What’s the difference

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.

What is ERC-4337 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.

So, 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.

How To Use Smart Wallets Securely

While a smart wallet may have more functionality than a traditional wallet, it doesn’t have to operate alone. It contains valuable assets, thus securing your smart wallet is very important.

To do so, it’s recommended that you set up your smart wallet with a hardware wallet. In short, your hardware wallet is designed to keep your private key safe from the internet and its risks. Working in tandem with your smart wallet, your hardware wallet can act as an unhackable verification method, allowing you to sign transactions with your smart wallet with confidence.

While web2 hardware like smartphones and laptops are subject to hacks, web3 hardware wallets are not. For this reason, using a hardware wallet with your smart wallet is still the most secure option for securing your digital assets. Ledger hardware wallets secure your keys with a secure Element chip, known to be one of the safest computer chips in existence. This means you can sign transactions with absolute confidence. For now, a Ledger Device is still the most secure option for protecting your keys- and therefore your assets.


Stay in touch

Announcements can be found in our blog. Press contact:
[email protected]

Subscribe to our
newsletter

New coins supported, blog updates and exclusive offers directly in your inbox


Your email address will only be used to send you our newsletter, as well as updates and offers. You can unsubscribe at any time using the link included in the newsletter.

Learn more about how we manage your data and your rights.