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

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

By Pillar | Etherspot | 15 Sep 2025


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 SDKSkandha BundlerArka 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

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)
})

❗️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

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,
});

❗️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 & Chain 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 [email protected].


Follow us

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

Powered by Etherspot

TransactionKit | Pillar Wallet | Case Studies 

How do you rate this article?

12


Pillar
Pillar

A community-run, multichain & non-custodial DeFi wallet with one address, low-to-no gas fees and cross-chain super powers!


Etherspot
Etherspot

All-in-one Account Abstraction development platform. Get your dApp ready for mass adoption via slick UI in 2 lines of code. Build now with TransactionKit.com

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.