Understanding Account Abstraction

Your go-to Account Abstraction resource. Whether you're an Account Abstraction newbie or already a total expert, we have what you need to keep growing.

How it works

How ERC-4337 supports Account Abstraction

UserOperations
User operation 1 submitted
I want to purchase this in-game NFT asset
lauren.eth
User operation 2 submitted
I want to enable dollar cost averaging from DAI to WETH
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Bundler
User operation 1 submitted
I want to purchase this in-game NFT asset
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Entry Point
Code
contract EntryPoint is IEntryPoint, StakeManager,
NonceManager, ReentrancyGuard {
    
     using UserOperationLib for UserOperation;
    
     SenderCreator private immutable senderCreator
Aggregator
Combining signatures
Combining all user ops into 1 signature
for BLS schemes
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Smart Contract Account
Transaction complete!
Congrats, you purchased an NFT!
lauren.eth
Transaction complete!
Automation enabled.
suzanne.eth
Transaction complete!
Congrats, swap complete!
probablynoam.eth
Paymaster
Sponsor gas fees
Sponsor gas fees
Sponsor gas fees
Continue
Key Terms & Concepts

Account Abstraction Fundamentals

What is an Account?

A person (or entity’s) representation on the blockchain that can send and receive cryptocurrency, as well as interact with other on-chain accounts.

‚Äć

Every Ethereum account is either a:

  • Externally Owned Account (EOA)
  • Smart Contract Account (SCA)

‚Äć

Ethereum transactions must originate from EOAs, which today are set up and accessed through wallets e.g., MetaMask, Phantom, Rainbow, etc.

What is an Externally Owned Account? (EOA)

EOAs are used for storing and transferring ETH, ERC-20 tokens and digital assets. EOAs are derived from a public key and controlled by a private key: 

  • Public key: The EOA‚Äôs 20-byte hexadecimal identifier, e.g., 0xF37E1D6b84db4053cE452B35A7DA79494dCbdb33, that the Ethereum network address is derived from, and is used by others to identify the account for a transaction¬†
  • Private key: The EOA‚Äôs password or seed phrase, used to sign transactions, and known only by the owner of the account¬†
    ‚Äć

EOA transaction validity is not based on code or smart contract logic. As long as a private key is known, the owner of the account can perform any transaction, pending validation of the user’s signature and nonce.

What is a Smart Contract Account (SCA)?

An SCA is the target of the UserOperation. SCAs are fully programmable accounts that can store assets in on-chain smart contracts. Rather than being controlled by a private key, SCAs are controlled by arbitrary, customizable verification logic.

‚Äć

This equips SCAs with:

  • Security benefits: Not controlled by a single private key means that access is not dependent on a single person remembering that private key.
  • Functionality expansion: Can set rules for things like transfer limits and social recovery.¬†

‚Äć

Account Abstraction proposes people use SCAs instead of EOAs as their primary accounts. Each user who wants the security and functionality benefits of SCAs will need  their own SCA.

Fully programmable accounts with built-in security and functionality benefits compared to Externally Owned Accounts (EOAs).

Back to definition
UserOperations
User operation 1 submitted
I want to purchase this in-game NFT asset
lauren.eth
User operation 2 submitted
I want to enable dollar cost averaging from DAI to WETH
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Bundler
User operation 1 submitted
I want to purchase this in-game NFT asset
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Entry Point
Code
contract EntryPoint is IEntryPoint, StakeManager,
NonceManager, ReentrancyGuard {
    
     using UserOperationLib for UserOperation;
    
     SenderCreator private immutable senderCreator
Aggregator
Combining signatures
Combining all user ops into 1 signature
for BLS schemes
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Smart Contract Account
Transaction complete!
Congrats, you purchased an NFT!
lauren.eth
Transaction complete!
Automation enabled.
suzanne.eth
Transaction complete!
Congrats, swap complete!
probablynoam.eth
Paymaster
Sponsor gas fees
Sponsor gas fees
Sponsor gas fees
Continue
What is ERC-4337?

An Ethereum proposal for using Smart Contract Accounts (SCAs) as people’s primary accounts, and effectively supporting users in the hard parts of managing web3 accounts.

‚Äć

4337 runs on top of the blockchain and does not require any changes to the blockchain itself.

‚Äć

This makes it usable today, on Ethereum or any EVM chain, without any significant changes to the underlying blockchain infrastructure.

‚Äć

Read the full proposal here.

What is a UserOperation?

The ERC-4337 flow kicks off with a UserOperation, which is a transaction-like object, representing a user’s transaction intent. A UserOperation can contain multiple requests and additional data to execute transactions that a Smart Contract Account (SCA) can carry out.
‚Äć

Although in many ways, UserOperations resemble traditional transactions, there are key differences: 

  • Additional fields: UserOperations include new fields in the transaction structure, e.g., EntryPoint, Bundler, Paymaster and Aggregator¬†
  • Alternate mempool: UserOperations are sent to a separate mempool, where bundlers can package them into transactions which get included in a block
  • Intent based: Today, transaction inputs are specific, e.g., swap 2k USDC for 1.2ETH. In contrast, UserOperations can be decorated with additional metadata to be more outcome focused, e.g., I want to trade 2k USDC for the most amount of ETH possible
User Operation 1 submitted

I want to purchase this in-game NFT asset

lauren.eth
User Operation 2 submitted

I want to enable dollar cost averaging from DAI to WETH

suzanne.eth
User Operation 3 submitted

I want to swap USDC for MATIC on Uniswap

probablynoam.eth
View in the ERC-4337 flow

A user creates their UserOperation, representing their transaction intent, and submits it to the mempool. This kicks off the ERC-4337 process.

Back to definition
UserOperations
User operation 1 submitted
I want to purchase this in-game NFT asset
lauren.eth
User operation 2 submitted
I want to enable dollar cost averaging from DAI to WETH
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Bundler
User operation 1 submitted
I want to purchase this in-game NFT asset
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Entry Point
Code
contract EntryPoint is IEntryPoint, StakeManager,
NonceManager, ReentrancyGuard {
    
     using UserOperationLib for UserOperation;
    
     SenderCreator private immutable senderCreator
Aggregator
Combining signatures
Combining all user ops into 1 signature
for BLS schemes
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Smart Contract Account
Transaction complete!
Congrats, you purchased an NFT!
lauren.eth
Transaction complete!
Automation enabled.
suzanne.eth
Transaction complete!
Congrats, swap complete!
probablynoam.eth
Paymaster
Sponsor gas fees
Sponsor gas fees
Sponsor gas fees
Continue
What is a Bundler?

Bundlers are a type of Ethereum node that supports UserOperations, instead, (or in addition to) typical Ethereum transactions.

‚Äć

UserOperations are sent to a network of Bundlers, who monitor the mempool and bundle multiple UserOperations into one transaction, packaging and submitting them to the blockchain on behalf of users. In return, Bundlers are compensated for doing this on behalf of users. 
‚Äć

Because we want to abstract away the necessity for everyone in web3 to have their own EOA, yet all Ethereum transactions need to be initiated by an EOA, Bundlers are a critical piece of infrastructure to actualize ERC-4337.

Want to test it out? Try our Bundler API!

Bundlers monitor the UserOperation mempool, and ‚Äúbundle‚ÄĚ multiple UserOperations, before submitting them to an EntryPoint.

Back to definition
UserOperations
User operation 1 submitted
I want to purchase this in-game NFT asset
lauren.eth
User operation 2 submitted
I want to enable dollar cost averaging from DAI to WETH
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Bundler
User operation 1 submitted
I want to purchase this in-game NFT asset
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Entry Point
Code
contract EntryPoint is IEntryPoint, StakeManager,
NonceManager, ReentrancyGuard {
    
     using UserOperationLib for UserOperation;
    
     SenderCreator private immutable senderCreator
Aggregator
Combining signatures
Combining all user ops into 1 signature
for BLS schemes
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Smart Contract Account
Transaction complete!
Congrats, you purchased an NFT!
lauren.eth
Transaction complete!
Automation enabled.
suzanne.eth
Transaction complete!
Congrats, swap complete!
probablynoam.eth
Paymaster
Sponsor gas fees
Sponsor gas fees
Sponsor gas fees
Continue
What is an EntryPoint?

A singleton smart contract that receives transactions from Bundlers, then verifies and executes UserOperations.
‚Äć

  • Verification: Check to see if the wallet has enough funds to pay the maximum amount of gas it might possibly use (based on the gas field in the UserOp). If not, the transaction is rejected.
    ‚Äć
  • Execution: Execute the transaction, and take money from the Smart Contract Account (SCA) to reimburse the Bundler (with the right amount of native token to pay for the gas.

The EntryPoint is a smart contract that receives transactions from Bundlers, and is responsible for verifying and executing UserOperations while ensuring Bundlers are compensated for their work.

Back to definition
UserOperations
User operation 1 submitted
I want to purchase this in-game NFT asset
lauren.eth
User operation 2 submitted
I want to enable dollar cost averaging from DAI to WETH
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Bundler
User operation 1 submitted
I want to purchase this in-game NFT asset
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Entry Point
Code
contract EntryPoint is IEntryPoint, StakeManager,
NonceManager, ReentrancyGuard {
    
     using UserOperationLib for UserOperation;
    
     SenderCreator private immutable senderCreator
Aggregator
Combining signatures
Combining all user ops into 1 signature
for BLS schemes
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Smart Contract Account
Transaction complete!
Congrats, you purchased an NFT!
lauren.eth
Transaction complete!
Automation enabled.
suzanne.eth
Transaction complete!
Congrats, swap complete!
probablynoam.eth
Paymaster
Sponsor gas fees
Sponsor gas fees
Sponsor gas fees
Continue
What is an Aggregator?

If multiple messages are signed with different keys, then an Aggregator can generate a single, combined, verified signature, which implies that all the constituent signatures are also valid.
‚Äć

By combining multiple signatures into a single signature, aggregators help save on data availability, with multiple bundled UserOperations validated in a single step.

‚Äć

For specific accounts that work with specific signature types that support aggregation (e.g., BLS), the account's signature check logic is deferred to this external contract, which in turn has to check a single signature over an entire bundle.


‚Äć

Vitalik’s thoughts on the importance of signature aggregation here.

Aggregators combine multiple signatures into a single signature, so that multiple UserOperations can be validated in a single step.

Back to definition
UserOperations
User operation 1 submitted
I want to purchase this in-game NFT asset
lauren.eth
User operation 2 submitted
I want to enable dollar cost averaging from DAI to WETH
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Bundler
User operation 1 submitted
I want to purchase this in-game NFT asset
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Entry Point
Code
contract EntryPoint is IEntryPoint, StakeManager,
NonceManager, ReentrancyGuard {
    
     using UserOperationLib for UserOperation;
    
     SenderCreator private immutable senderCreator
Aggregator
Combining signatures
Combining all user ops into 1 signature
for BLS schemes
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Smart Contract Account
Transaction complete!
Congrats, you purchased an NFT!
lauren.eth
Transaction complete!
Automation enabled.
suzanne.eth
Transaction complete!
Congrats, swap complete!
probablynoam.eth
Paymaster
Sponsor gas fees
Sponsor gas fees
Sponsor gas fees
Continue
What is an ERC-4337 Paymaster?

The ERC-4337 defined smart contract that handles the implementation of gas payment policies and enables developers to provide their end users gas-free experiences via sponsored or ERC-20 gas policies.

‚Äć

These policies create flexibility for (1) how gas is paid (e.g., in what currency) and (2) by whom, thereby effectively removing the prerequisite for users to hold native blockchain tokens in order to interact with the blockchain.

‚Äć

Paymasters allow application developers to: 

  • Sponsor gas fees for their users¬†
  • Enable gas payments in stablecoins¬†
  • Enable gas payments in other ERC-20 tokens

‚Äć

Want to test it out? Try our Gas Manager API!

Paymasters handle the implementation of off-chain gas payment policies, creating flexibility for how gas is paid and by whom.

Back to definition
UserOperations
User operation 1 submitted
I want to purchase this in-game NFT asset
lauren.eth
User operation 2 submitted
I want to enable dollar cost averaging from DAI to WETH
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Bundler
User operation 1 submitted
I want to purchase this in-game NFT asset
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Entry Point
Code
contract EntryPoint is IEntryPoint, StakeManager,
NonceManager, ReentrancyGuard {
    
     using UserOperationLib for UserOperation;
    
     SenderCreator private immutable senderCreator
Aggregator
Combining signatures
Combining all user ops into 1 signature
for BLS schemes
User operation 1 submitted
lauren.eth
User operation 2 submitted
suzanne.eth
User operation 3 submitted
I want to swap USDC for MATIC on Uniswap
probablynoam.eth
Smart Contract Account
Transaction complete!
Congrats, you purchased an NFT!
lauren.eth
Transaction complete!
Automation enabled.
suzanne.eth
Transaction complete!
Congrats, swap complete!
probablynoam.eth
Paymaster
Sponsor gas fees
Sponsor gas fees
Sponsor gas fees
Continue
What is ERC-6900?

An ERC-4337 compliant proposal for standardizing Smart Contract Accounts (SCAs) and account plugins:

  • SCAs: fully programmable accounts that can store assets in on-chain smart contracts
  • Account plugins: smart contract interfaces that allow for composable logic within SCAs

‚Äć

ERC-6900 is a proposed standard to coordinate the implementation work between SCA developers and plugin developers, and defines a modular SCA capable of supporting all standard-conformant plugins. 

‚Äć

This will allow users to have greater portability of their data and for plugin developers to not have to choose specific wallet implementations to support. 

‚Äć

Read the full proposal here.

Ready to bring web3 to a billion people?

Account Abstraction is the way. Get on the list to build the future.
Get started