Exploring the Benefits of Account Abstraction in Rollups
Tags: rollups
Published: 2023-12-27 09:02:24

<p>EIP-4337 has brought along a matured or, we can say, the final version of Account abstraction (AA), which has transformed how blockchain wallets have been used and managed traditionally via private-public key combination &amp; secret phrase mechanism. Being an amalgamation of externally owned accounts (EOAs) and smart accounts, account abstraction unlocks great possibilities for Layer-2s, including <a href="https://www.zeeve.io/rollups/">rollup networks</a>.</p>
<p>This article discusses the various benefits of <a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">account abstraction (ERC-4337)</a> in <a href="https://www.zeeve.io/rollups/">rollups</a>. Though this is not something natively supported with many of the rollup SDKs as of now, we will see how we can integrate the benefits of AA easily with L2 and <a href="https://www.zeeve.io/blog/a-comprehensive-guide-for-smart-contract-and-sovereign-rollups">Sovereign Rollups</a>.&nbsp;</p>
<figure class="wp-block-image aligncenter size-large"><a href="https://www.zeeve.io/rollups/"><img src="https://www.zeeve.io/wp-content/uploads/2023/12/Deploy-Ethereum-smart-contracts-in-minutes.-1-1024x130.jpg" alt="" class="wp-image-53131"/></a></figure>
<h2 id="h-what-is-account-abstraction-erc-4337">What is Account Abstraction (ERC-4337)?</h2>
<p><a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">Account abstraction</a>, as the name suggests, abstracts away the account management approach from the underlying blockchain. Abiding by the ERC-4337 token standard, account abstraction proposes an amalgamation of externally owned accounts (EOAs) and contract accounts. Hence, the features it offers are programmable <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart contract</a> accounts, seedless account management/recovery, multi-sig authentication, and more.&nbsp;</p>
<p>For a detailed understanding of Account abstraction, refer to the article below:</p>
<p><a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">ERC-4337: How is ‘Account Abstraction’ a game changer for the web3 industry?</a></p>
<h2 id="h-what-are-blockchain-rollups">What are blockchain Rollups?</h2>
<p><a href="https://www.zeeve.io/rollups/">Blockchain rollups</a> are layer-2 scaling solutions that aim to take the transaction computation process off-chain on a separate network while remaining connected with the underlying Layer 1 blockchain for the purpose of inheriting security and final settlement.&nbsp;</p>
<p><strong>Read more:&nbsp;</strong> <a href="https://www.zeeve.io/blog/the-benefits-of-using-rollups-infrastructure-across-different-sectors/">The benefits of using rollup infrastructure across different sectors: Key aspects to consider</a></p>
<p><a href="https://www.zeeve.io/appchains/optimistic-rollups/">Optimistic rollups</a> and <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">zkRollups</a> are the two main types of rollups available for web3 projects to use. <a href="https://www.zeeve.io/appchains/optimistic-rollups/">OP Stack</a> and Arbitrum&nbsp; Orbit are the popular <a href="https://www.zeeve.io/appchains/optimistic-rollups/">Optimistic Rollup</a> frameworks for building modular optimistic rollup chains, whereas <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Polygon CDK</a> and <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkSync Hyperchains</a> let you build your own ZK-powered L2/L3 network easily.&nbsp;</p>
<p>Want to learn more about rollups and its benefits across various sectors? Refer to our detailed guide linked here: <a href="https://www.zeeve.io/blog/various-rollup-frameworks-for-launching-optimistic-and-zk-rollups/"><strong>Various Rollup frameworks for launching Optimistic and ZK rollups</strong></a></p>
<h2 id="h-what-are-the-benefits-of-account-abstraction-for-rollups">What are the benefits of Account Abstraction for rollups?</h2>
<p>Accounts abstraction is a game-changer concept for the web3 ecosystem. Although <a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">ERC-4337</a> was first introduced through <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum</a>, its implementation is rapidly done on various EVM and non-EVM compatible Layer-2 networks, including <a href="https://www.zeeve.io/rollups/">Rollups</a>. That’s so because layer-2s, like rollups, are more flexible compared to layer-1 when it comes to full implementation of any new technology.&nbsp;</p>
<p>Using account Abstraction <a href="https://www.zeeve.io/rollups/">rollup networks</a> like <a href="https://www.zeeve.io/blockchain-protocols/deploy-polygon-zkevm-node/">Polygon zkEVM</a>, <a href="https://www.zeeve.io/blockchain-protocols/deploy-zksync-era-node/">zkSync Era</a>, Arbitrum One, <a href="https://www.zeeve.io/blockchain-protocols/deploy-optimism-node/">Optimism</a>, and <a href="https://www.zeeve.io/blockchain-protocols/deploy-starknet-node/">Starknet</a> have been leveraging programmable smart contracts to make web3 experience simpler and more exciting for everyone. Let’s now talk about the benefits of account abstraction in rollups:</p>
<li><strong>Multi-signature authentication:</strong></li>
<p>Layer-2 rollups are being frequently utilized for projects like <a href="https://www.zeeve.io/blog/what-is-dao-decentralized-autonomous-organization/">DAOs</a>, crypto exchanges, and investment platforms where a single individual does not have complete ownership of <a href="https://www.zeeve.io/blog/comprehensive-guide-on-tokenized-real-world-assets/">assets</a>. Hence, for such dApps, multi-signature authentication is very important to authenticate signatures from multiple members. <a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">Account Abstraction</a> allows all these projects to program their <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart contract</a> with multi-signature functionality setup and complex access control, approving transactions only when they are signed by every authorized member.&nbsp;</p>
<li><strong>Seedless account recovery:&nbsp;</strong></li>
<p>Opposed to EOAs, account abstraction does not rely on the seedphrase or private key-based account recovery options. Instead, it uses unique <a href="https://www.zeeve.io/blog/cryptographic-hash-algorithms-benefits-functionality-and-applications/">cryptographic</a> schemes to enable multi-party signature setup in accounts. MPS allows trusted guardians to be authorized to sign transactions on behalf of the user, thereby regaining wallet access.&nbsp;</p>
<li><strong>Smart contract whitelisting:</strong></li>
<p><a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">Account abstraction</a> allows dApps to whitelist a specific smart contract they want to interact with. Let’s say you have a logistic company that has created its single-use Layer-2 just to interact internally with the employees. In this case, if you whitelist all the smart contract address that belongs to the respective employees, no one else, like a hacker would be able to drain the funds or access sensitive company’s information. Also, this practice prevents scenarios like transferring funds by mistake to a wrong address or wallet address that does not even exist.&nbsp;</p>
<p><a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">Account abstraction</a> allows dApps to whitelist a specific smart contract they want to interact with. Let’s say you have a logistic company that has created its single-use Layer-2 just to interact internally with the employees. In this case, if you whitelist all the smart contract address that belongs to the respective employees, no one else, like a hacker would be able to drain the funds or access sensitive company’s information. Also, this practice prevents scenarios like transferring funds by mistake to a wrong address or wallet address that does not even exist.&nbsp;</p>
<li><strong>Transaction batching for simplified UX:&nbsp;</strong></li>
<p>Interactions on decentralized applications are complex. To complete a single actions, you require to complete multiple steps. For example, if you want to buy <a href="https://www.zeeve.io/blog/dynamic-nfts-new-world-for-nfts">NFT</a> from a marketplace, you first need to connect your wallet, go to the bridge, sign transactions, buy tokens, connect to <a href="https://www.zeeve.io/blog/how-to-connect-to-my-ec2-geth-node-with-json-rpc/">RPC</a>, sign bridge transactions, go to your dApp, and then approve transactions to finally buy NFTs.&nbsp;</p>
<p>That’s really a time-consuming and technically-complicated process. Account abstraction eliminates this by allowing multi-call function in your <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart contracts</a>, batching all the actions in a single transaction for quick approval.&nbsp;</p>
<p>That means, if you buy <a href="https://www.zeeve.io/blog/a-simple-and-comprehensive-guide-on-non-fungible-tokens/">NFT</a> from an account abstraction-compatible NFT marketplace, you simply need to connect your wallet, buy NFTs, sign batched transaction, and that’s done. This approach improves the user experience and meanwhile reduce gas consumption since there’s no need for individual transaction approval.</p>
<li><strong>Instant fund withdrawal/transfer:</strong></li>
<p><a href="https://www.zeeve.io/rollups/">Rollups</a> may have a long wait period for fund transfers/withdrawal. Like, if we talk about <a href="https://www.zeeve.io/appchains/optimistic-rollups/">optimistic rollups</a>, users typically wait for about 2-weeks to withdraw their ETH from a base chain or transfer <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">ETH</a> to any active rollup layer. Account abstraction eliminates this issue by allowing <a href="https://www.zeeve.io/rollups/">rollup ecosystems</a> to make liquidity providers part of their contract, getting their help in making immediate exit of funds, eliminating the slow response and wait time.</p>
<li><strong>Seamless user onboarding:&nbsp;</strong></li>
<p>Blockchain dApps– be it a <a href="https://www.zeeve.io/rollups/">rollup</a> or non-rollup ecosystem, its users have to go through the complex and time-consuming process of setting up a web3 wallet, account creation, adding 2-factor authentication, managing seed phrases, and, most importantly– ensuring the security of private keys. Completing these steps can be a challenge for non-web3 users.</p>
<p>Therefore, account Abstraction bypasses all these challenges with features such as gasless transactions (sponsored payment by dapp itself of any 3rd party), ease of paying gas in any native token, biometric or social recovery-based wallet creation &amp; login, flexible account recovery option in case seedphrase is lost, abstraction of session keys that needs signing endless pop-ups, and quick, few-step account setup.&nbsp;&nbsp;</p>
<li><strong>Implementation of custom signature schemes:&nbsp;</strong></li>
<p>dApps with <a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">account abstraction</a> will have the flexibility to launch custom signature schemes. For example, you can substitute today’s private key-based signature scheme with a more powerful, quantum-resistant signature or BLS, which enhances security significantly while keeping the ecosystem ready to adopt ongoing crypto advancements.</p>
<li><strong>Ability to program transaction validity scheme:</strong></li>
<p>Account abstraction-compatible <a href="https://www.zeeve.io/rollups/">rollup networks</a> offer dApp developers the power to program and set their own validity criteria for transactions. If we talk about blockchains like <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum</a>, transactions are considered valid only if certain parameters are met. For example, it must possess the correct nonce and a valid signature, or your account must maintain enough gas balance to pay for transactions. These all traditional EVM rules. Now, with account abstraction, projects can use additional modules to add their own custom set of conditions that confirm the validity of transactions.&nbsp;</p>
<li><strong>Option of setting spending limits:&nbsp;</strong></li>
<p>With account abstraction support, every smart account on a <a href="https://www.zeeve.io/rollups/">rollup network</a> can set its spending limit daily, weekly, or monthly. This will prevent accounts from spending funds beyond the chosen limit. Further, in case of a situation like your account being hacked, the attacker will not be able to withdraw funds beyond the limit.&nbsp;</p>
<li><strong>Automated gas payments:</strong></li>
<p>Automatic payments or scheduling payments is a feature of account abstraction that provides dApps with a traditional, web2-app payment-like experience. With EOAs, paying the gas fee is a painful task, as you have to sign every transaction manually via private keys. To provide a solution,&nbsp; account abstractions allow projects to program their <a href="https://www.zeeve.io/blog/smart-contract-standardization-a-necessity-for-the-large-scale-adoption-of-blockchain/">smart contract</a> specifically to allow transaction execution via proxy of private keys. These proxy can be trusted, third-party service providers who can pull funds via smart contracts to automate payments and subscriptions.&nbsp;</p>
<li><strong>Adding Application-specific restrictions:&nbsp;</strong></li>
<p>Besides the general restrictions, projects building their own <a href="https://www.zeeve.io/rollups/">custom rollup chain</a> may require adding application-specific restrictions to address their specific privacy concern. <a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">Account abstraction</a> allows decentralized applications to set up additional restrictions, such as limiting access to transaction data, customizing gas fees, or adding eligibility criteria for smart contract deployment.</p>
<li><strong>&nbsp;Payments in native currency/Fiat:</strong></li>
<p>DApps with support for account abstraction can allow accounts to use Paymasters to allow transaction fees to be paid in any native currency or token, for example, USDC or <a href="https://www.zeeve.io/blog/introduction-to-token-standards-erc-20-erc-721-erc-777-and-erc-1155/">ERC-20</a>. These paymasters also allow for ‘sponsoring transactions’, allowing dApps to pay for others’ gas fees. Logics related to both these payment options need to be programmed into smart contracts while building the dApp.&nbsp;</p>
<li><strong>Fraud monitoring:&nbsp;</strong></li>
<p>Considering that security is vital for <a href="https://www.zeeve.io/rollups/">blockchain rollups</a>, account abstraction allows smart contracts to include a third-party fraud monitoring service that acts as co-signatories programmed by the users. These can validate signatures, check transactions, authenticate the pre-defined security rules, and do much more. These third-party services won’t have the ability to access or control your <a href="https://www.zeeve.io/blog/comprehensive-guide-on-tokenized-real-world-assets/">assets</a>; they can just approve the transactions.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a8zg89u2m12rdaqgxyiw.png)
<h2 id="h-implementing-account-abstraction-on-l2-l3-rollups-using-biconomy-aa-toolkit-with-zeeve-raas">Implementing Account Abstraction on L2/L3 rollups using Biconomy AA Toolkit with Zeeve RaaS</h2>
<p>As discussed the benefits of account abstraction in <a href="https://www.zeeve.io/rollups/">rollups</a> are extremely promising. But, as we discussed, most SDKs currently do not have native support for <a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">ERC-4337</a>. That’s where account abstraction service providers like Biconomy become useful. As an integration partner of <a href="https://www.zeeve.io/">Zeeve</a>, developers can leverage Biconomy’s SDK and design their custom UX with programmable plug-and-play modules easily. This unlocks benefits like effortless user onboarding, simple web2-like UX, limitless customization, higher security, and much more.</p>
<p>Biconomy offers a full-stack AA SDK for effortless implementation of account abstraction on all kinds of Layer-2 and Layer-3 networks, including <a href="https://www.zeeve.io/rollups/">rollups</a>.&nbsp;</p>
<p>With thousands of smart contracts deployed in its ecosystem, Biconomy claims to account for over 86% of the market share of the <a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">ERC-4337</a> compliant smart contract market. Biconomy’s Account Abstraction SDK v1 mainnet has been live since April, and it recently rolled out SDK v2. This new release aims at improving the previous SDK &amp; <a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">ERC-4337</a> offering with the following stack of composable services:&nbsp;</p>
<li><strong>Modular smart contracts-</strong> plug-in modules for adding custom features and capabilities to account abstraction wallets, enabling them to offer improved web3 user experience.</li>
<li><strong>Paymasters as a service- </strong>Solution for enabling gasless, sponsored transactions for users and meanwhile allowing gas fees to be paid in any token.</li>
<li><strong>Bundlers as a service-</strong> Using this service, you can pass on UserOps of your dApp to Biconomy, and the bundles will execute them on-chain. Note that any non-Biconomy package can be used to create your dApps’ UserOps, but you can still use Biconomy bundlers API.&nbsp;</li>
<p>Further, <a href="https://www.zeeve.io/">Zeeve</a> offers everything needed for the seamless launch of L2s and L3s, such as RPC nodes, wallets, explorers, data indexers, faucets, and <a href="https://www.zeeve.io/blog/what-are-cross-chain-bridges-a-detailed-guide/">cross-chain bridges</a>. Further, if you need to discuss any aspect of your project, our blockchain experts are ready to assist you. <a href="https://www.zeeve.io/talk-to-an-expert/">Connect with them on a one-to-one call</a> for derailed discussion or drop your queries via email on this page.&nbsp;</p>