DEV Community

Cover image for How to Integrate Account Abstraction (ERC-4337 & ERC-7579) with Etherspot
Alexandra for Etherspot

Posted on • Originally published at etherspot.io

How to Integrate Account Abstraction (ERC-4337 & ERC-7579) with Etherspot

Accessibility is key to Web3 mass adoption. In our recent article, we explored how Account & Chain Abstraction evolved from hype into real product value, and why these concepts are central to achieving product-market fit. By simplifying onboarding, improving retention, and enabling seamless multi-chain experiences, they address one of the biggest barriers to bringing more users into Web3.

Today, let’s take a look at how you can integrate Account Abstraction (ERC-4337 & ERC-7579) into your dApp without rebuilding everything from scratch.

Getting Started with Etherspot Infrastructure

Etherspot Infrastructure gives you everything you need to start working with Account Abstraction. It includes support for both ERC-4337 and ERC-7579, and comes with:

Modular SDK, Skandha Bundler, Arka Paymaster, Multi-chain APIs, Chain Abstraction Pulse SDK (coming soon).

Currently, Etherspot supports 25+ chains, including Ethereum, Optimism, Arbitrum, Base, Avalanche, Scroll, and more.

Install the Modular SDK

The Etherspot Modular SDK is the entry point to our infrastructure. It lets you install and uninstall modules for an Etherspot ERC-7579 account, as well as interact with them directly.

Register on the Etherspot Developer Dashboard to get your API key.

Install the SDK with:

npm i @etherspot/modular-sdk - save
or
yarn add @etherspot/modular-sdk
Instantiate the SDK
Enter fullscreen mode Exit fullscreen mode

Import the SDK and set up your smart account with some of the following properties:

  • walletProvider

  • chainId

  • chain (optional)

  • bundlerProvider (optional)

  • factoryWallet (optional)

const modularSdk = new ModularSdk(
privateKey: process.env.WALLET_PRIVATE_KEY,
{
chainId: Number(process.env.CHAIN_ID),
bundlerProvider: new EtherspotBundler(Number(process.env.CHAIN_ID), bundlerApiKey, customBundlerUrl)
})
Enter fullscreen mode Exit fullscreen mode

❗️To get your API key, simply sign up on the Etherspot Developer Dashboard.

That’s it! You can now call any of the Modular SDK functions.

Alternative: Integrate with Etherspot’s TransactionKit

Another option is to integrate the Modular SDK through our TransactionKit, which includes it by default. You just need to install TransactionKit (and Viem) to get started:

# Using npm
npm install @etherspot/transaction-kit

# Using yarn
yarn add @etherspot/transaction-kit

# Using pnpm
pnpm add @etherspot/transaction-kit
Enter fullscreen mode Exit fullscreen mode

Example of implementation:

const client = createWalletClient({
account,
chain: Chain,
transport: http(),
});

const kit = TransactionKit({
provider: client as WalletProviderLike,
chainId: Number(process.env.CHAIN_ID),
bundlerApiKey: process.env.ETHERSPOT_BUNDLER_API_KEY,
});
Enter fullscreen mode Exit fullscreen mode

❗️Generate your API key on the Etherspot Developer Dashboard.

TransactionKit was built to make blockchain transactions feel effortless for developers. Instead of wrestling with low-level complexities, you get a clean, fluent API that’s both flexible and intuitive.

Some of the highlights include:

  • Chainable methods that let your code read naturally, almost like a sentence.
  • Lightweight by design, so your dApp only bundles what it actually uses, keeping things fast and lightweight.
  • Framework agnostic support, whether you’re building with React, Vue, Angular, or plain JavaScript.
  • TypeScript-first approach with full type safety and IntelliSense.
  • Built-in error handling that helps you avoid frustrating debugging sessions.
  • Batch transaction support makes it easy to send multiple transactions at once.
  • Debug mode for detailed logging when things don’t go as planned.

With just a few steps, your dApp is ready to leverage the full power of Account Abstraction through Etherspot.

For more details, check out our documentation, join the discussion on Discord, or book a call with our team if you’d like a deeper dive.


📢** Free censorship-resistant EIP-7702 Infrastructure**

EIP-7702 opens the door for EOAs to gain Account Abstraction features without requiring users to migrate.

To support this shift, Etherspot and the Ethereum Foundation are developing and launching publicly accessible, censorship-resistant UserOp mempool nodes. The infrastructure includes:

Bundlers with native tracer support for faster execution
Seamless integration with popular Web3 libraries and 24/7 developer support
Redundancy across bundlers, sharing UserOps from both ERC-4337 and EIP-7702
Free access for any project or developer building on the EVM ecosystem
The rollout begins with Ethereum, Optimism, and Arbitrum, followed by World Chain, Base, Unichain, and Linea.

If you’d like to explore how this integration can benefit your product, reach out to us at info@etherspot.io.


Follow us

Etherspot Website | X | Discord | Telegram | Github | Developer Portal

Top comments (0)