
How to get started with Account Abstraction on Ethereum
Crypto's journey began with Bitcoin's rise to popularity in 2013, introducing the novel concept of "wallet" interactions. The wallet model shifted user authentication from traditional username/password systems to cryptographic keypairs.
Ethereum expanded the wallet model with smart contracts, blockchain-deployed programs that users interact with through their accounts.
However, the complexity of smart contract applications created barriers for mainstream adoption. Managing private keys, seed phrases, and transaction signing often intimidates new users and creates a less intuitive experience compared to traditional applications.
As cryptocurrency adoption grows, improving user experience remains critical. On Ethereum, Account Abstraction (AA) offers a promising solution by combining user accounts with smart contracts to create "Smart Accounts."
Though the concept of Account Abstraction isn't new (with Safe being a notable early implementation), ERC-4337 has emerged as the most widely adopted implementation standard on Ethereum, providing developers with a consistent approach to building Account Abstraction solutions.
Account Abstraction offers significant advantages over traditional wallets. In this article, we'll explore these benefits, examine how Account Abstraction works in detail, and discuss how dedicated wallet infrastructure can enhance AA implementations.
Types of Ethereum accounts
To grasp how Account Abstraction works, we first need to distinguish between the two account types on Ethereum: Externally Owned Accounts (EOAs) and Smart Contract Accounts.
Externally Owned Accounts (EOAs)
Externally Owned Accounts are user-controlled accounts that most people use for everyday Ethereum activities like swapping tokens, trading NFTs, and receiving funds through their account address (e.g., 0xabc...).
EOAs are typically generated by wallets, which provide users with a seed phrase representing the private key that controls the account. This private key is essential for signing and approving all transactions from the EOA.
Importantly, EOAs can only initiate transactions and cannot execute code themselves. This limitation means EOAs operate with a fixed set of functions, unable to adapt to evolving blockchain capabilities without network-level upgrades.
Smart Contract Accounts
Smart Contract Accounts are blockchain-deployed programs that, despite sharing the same address format as EOAs (e.g., 0xabc...), offer significantly different capabilities.
Smart Contract Accounts contain code and various data types that enable them to perform programmatic actions based on incoming or outgoing transactions.
For example, consider a simple NFT contract:
- When a user sends ETH to the contract, the contract automatically generates a new NFT and transfers it to the sender
- The user can return the NFT to the contract to "burn" it, with the contract reducing supply and transferring the NFT to an inaccessible address
Unlike EOAs, Smart Contract Accounts don't have associated private keys. Instead, Smart Contract Accounts are deployed by EOAs (or other programs) that serve as the contract's "owner." Smart contracts can also feature distributed ownership or be completely ownerless.
Smart contracts can hold assets, interact with other contracts, and execute complex logic based on predefined conditions. Smart contract programmability enables features like multi-signature requirements, time-locked transactions, and conditional execution that are impossible with standard EOAs.
The trade-offs
Smart Contract Accounts provide significantly more flexibility than EOAs but come with increased complexity and higher transaction costs.
EOAs are simpler but require careful private key management and offer less flexibility, which can negatively impact user experience. A lost private key means permanent loss of all assets associated with that account—a risk that has resulted in billions of dollars in inaccessible cryptocurrency over the years.
Account Abstraction, particularly through the ERC-4337 standard, aims to bridge EOAs and Smart Contract Accounts, combining smart contract benefits while addressing the security and user experience challenges associated with traditional EOAs.
By merging the security of EOAs with the programmability of smart contracts, Account Abstraction enables more user-friendly and sophisticated blockchain applications.
What is account abstraction?
Account abstraction on Ethereum is the use of smart contracts, known as smart accounts, that perform actions on behalf of users. Account Abstraction smart contracts hold assets and can execute transactions like swaps and trades, while typically remaining under the control of a user's Externally Owned Account (EOA).
The smart contract approach creates a separation between authentication (verifying who can authorize actions) and execution (performing the actual blockchain transactions), which is the fundamental principle behind Account Abstraction.
Early account abstraction examples
One of the pioneering implementations of Account Abstraction came in the form of multi-signature wallets, which are smart contracts requiring approval from multiple EOAs before executing transactions.
Multi-signature wallets represented a significant advancement in both security and user experience. Rather than relying on a single point of failure (one private key controlling all funds), multi-signature wallets distribute control across multiple signers, requiring a predefined threshold of approvals before funds could move.
Safe (formerly Gnosis Safe) emerged as an early champion of multi-signature wallets. Safe's implementation allowed transactions to be proposed through a smart contract and required multiple signatures before submission to the network.
In this architecture, the user's account functions primarily as a signer. The user's account signs proposed transactions that are then forwarded to a smart contract for validation and execution. This innovative separation between signing authority and transaction execution laid the groundwork for modern Account Abstraction implementations.
By removing the single-user dependency and enabling more complex authorization logic, early multi-signature wallets demonstrated how smart contracts could fundamentally improve blockchain interaction while enhancing security through distributed control mechanisms.
Account abstraction today: ERC-4337
Today, "account abstraction" typically refers to ERC-4337, a standardized set of smart contracts on Ethereum that provides a framework for developers to create account abstraction wallets (smart wallets) for their users.
ERC-4337 adheres closely to the fundamental principle of separating roles: the EOA serves as a signer, while the smart contract manages execution.
Before exploring the technical details of ERC-4337 and examining specific implementations, let's consider the key benefits of Account Abstraction and why developers might integrate it into their applications.
Why use account abstraction?
Traditional end-user accounts present significant challenges in both user experience and security.
Applications frequently demand multiple signatures and approvals, resulting in repetitive pop-ups that frustrate users. Additionally, individuals must manage their private keys and assets with only a seed phrase for recovery. EOAs also lack flexibility compared to the programmable nature of smart contracts.
Account Abstraction, particularly through ERC-4337, addresses many of these user experience limitations. ERC-4337 provides a framework for smart wallet implementation, enabling advanced transaction capabilities including batching, sponsored transactions, custom verification patterns, and multisignature functionality. Let's examine these benefits in greater detail.
Simpler transaction flow
Account Abstraction allows multiple user actions to be bundled into a single transaction. Transaction bundling significantly reduces pop-up fatigue by consolidating flows that would normally require multiple approvals. Transactions can also be sponsored by other accounts, simplifying users' first blockchain interactions. These batched transactions often prove more gas efficient than standard approaches.
Authentication features
ERC-4337 includes signature support that enables developers to implement familiar authentication methods like passkeys, biometrics, and social recovery. ERC-4337 signature support creates a more intuitive experience for newcomers by replacing the immediate introduction of private keys and seed phrases with authentication systems they already understand.
Custom verification patterns
Smart Accounts can incorporate features such as automated recurring payments or specialized functionality. Users can benefit from guardrails like limiting interactions to reputable DEXs or setting spending caps to help beginners safely navigate crypto applications. The custom verification patterns category also includes the previously discussed multi-signature capabilities.
ERC-4337 and Account Abstraction effectively bridge EOAs and smart contracts, creating Smart Accounts that deliver the security and flexibility of onchain contracts without the limitations associated with traditional EOAs.
How ERC-4337 account abstraction works
An important part to note about ERC-4337 is that it doesn't change the core protocol whatsoever; the account abstraction mechanisms are built on top of smart contracts on Ethereum.
For developers, there are a few key pieces of architecture to understand:
- `UserOperations` - Transaction-like objects created by users (in an app) to be sent to a smart account for execution.
- `Bundlers` - Collect `UserOperations` and group them to post to the `EntryPoint` contract on Ethereum. Bundlers are a kind of node.
- `EntryPoint Contract` - Validates and executes `UserOperations`.
- `AccountContract` - The smart contract which represents a user's account onchain.
- `Paymaster Contracts` (optional) - Special contracts that can be used to pay gas fees on behalf of a user.
UserOperations
The ERC-4337 docs refer to userOperations as a “pseudo-transaction object”. It’s best to think of a userOperation as the kind of shape a transaction will take, but it isn’t actually a transaction itself. A userOperation just contains the instructions and other data provided by an EOA for a smart wallet to execute.
Some of the key fields in the userOperations struct include:
The standard flow of interaction might be a userOperations object created in the frontend of a crypto app, the object is encoded to the Ethereum ABI, and sent to a bundler to be validated. UserOperations are actually sent to a separate mempool to normal EOA transactions, which bundlers take these from, validate, and send onto the EntryPoint contract to verify and execute.
Bundlers
Bundlers are typically provided by third-party solutions or run by validators. Developers can use solutions such as Infura or Alchemy to submit userOperations to bundlers, although some solutions provide full support for the entire flow (which we’ll get into shortly).
EntryPoint Contract
Bundlers send validated userOperations to the EntryPoint contract. EntryPoint contracts are single contracts on each chain, which actually execute the code related to the user’s Account Contract (the smart contract associated with their EOA).
Account Contract
The Account Contract is the smart contract associated with a user, and is generated with the `CREATE2` opcode. CREATE2 is an EVM opcode for creating smart contracts which can have pre-computed addresses for other EVM chains. The CREATE2 opcode is important in order to create a consistent contract address for users across different chains.
Here’s the example provided in the ERC-4337 docs using ethers.js.
Paymaster Contracts
Paymaster Contracts are contracts you can deploy and fund as a developer in order to sponsor your user’s onchain actions. Paymaster sponsorship is great for onboarding, as many non-crypto native users aren’t familiar with the idea of paying gas fees to perform some action on an application.
Most account abstraction solutions will offer ways for developers to sponsor transactions, including Turnkey, a wallet infrastructure solution for building better crypto experiences.
In your userOperations object, if you don’t want to sponsor a transaction you can enter “0x” as the value in the paymasterAndData field to pass in an empty byte array. To sponsor a transaction, you would instead pass in the address of the Paymaster contract concatenated with its signature, and any other relevant data.
Here’s what it might look like in your crypto app in practice.
The sponsorship code will likely depend on the exact implementation you are using.
For more details on how ERC-4337 works, you can check out the documentation on the architecture here.
UserOperations, bundlers, the EntryPoint contract, Account Contracts and Paymaster Contracts are some of the core building blocks for helping developers create ERC-4337 abstracted wallets, or what are more commonly referred to as Smart Accounts/Smart Wallets. However for most developers, it is more than likely they will build on existing Account Abstraction solutions.
Getting started: account abstraction SDKs and tools
Developers can build their own wallet abstractions on top of ERC-4337, and crypto app developers can integrate them into their own applications in order to improve UX.
Most developers will likely build on top of existing tools which have been developed to help simplify the AA experience for other developers. Existing AA tools include Biconomy’s AbstractJS SDK, and Alchemy's AccountKit, which offer their own bundlers and can deploy Smart Accounts on behalf of users. Biconomy and Alchemy also offer support for some of the newer Ethereum proposals such as EIP-7702, which lets EOAs become smart accounts through delegation.
Here’s a couple of code snippets from Biconomy’s documentation, so you can see how it works:
Something you might have noticed is that while ERC-4337 allows users to build abstracted onchain accounts, there is still a need for a signer at the base-level. The need for a base-level signer means at some point in the process a private key must be generated and managed, which is usually done on behalf of the user through dedicated wallet infrastructure solutions.
Most Account Abstraction solutions are flexible, and allow developers to choose which signing service they want to use. Biconomy, for example, has many integrated signers to choose from, including Turnkey. Alchemy offers their built-in Alchemy Signer, which uses Turnkey under the hood to generate non-custodial wallets for users.
For developers building with Account Abstraction, Turnkey can serve as the signer.
How Turnkey can improve the account abstraction experience
Turnkey offers enterprise-grade key management infrastructure that can serve as the secure signer for ERC-4337 smart accounts. By pairing Turnkey with Account Abstraction, you get the flexibility and improved UX of smart accounts while maintaining institutional-grade security for the underlying signing keys.
The steps are as simple as:
- Signing up to Turnkey
- Generating an API keypair
- Importing the Turnkey client/utilities into your project
- Signing transactions
Here’s Biconomy’s example using Turnkey and viem.
Turnkey integration extends Account Abstraction benefits by supporting passkey/biometric authentication and social recovery to create secure login flows for user private keys.
Turnkey integration gives developers flexibility to offer users non-custodial, user-friendly login options for their end users while maintaining fully onchain transaction flows via Account Abstraction, by utilizing Turnkey as a signer.
With Turnkey, developers can sign userOperations that forward to bundlers and Smart Accounts while preserving advantages like sponsored transactions. Organizations benefit from Turnkey's granular control over signer configuration and the ability to pre-generate wallets that can later serve as signers for smart accounts.


.png)