← All posts

Nov 2026 · 5 min read · ERC-4337, Backend, Web3

What I Shipped in an ERC-4337 Bundler

Relayer management, the transaction lifecycle, and the operational tooling on Biconomy's open-source bundler.

The protocol notes below are the public ERC-4337 model. The work is what I landed on the MIT-licensed bundler at github.com/bcnmy/bundler between August 2022 and April 2023: 50+ pull requests.


What the bundler is for

ERC-4337 lets a smart account submit a UserOperation instead of an ordinary transaction. Those operations go to a separate mempool. A bundler collects them, simulates them, and submits them on chain through a funded account. A singleton EntryPoint contract validates and executes them. Gas can be paid by the account or sponsored by a paymaster.

The bundler is that submission step. Biconomy's implementation is TypeScript, open source, and the code I worked in.

A queue of relayers

The bundler does not send every operation from one account. I built the relayer queue: a pool of funded accounts, automatic funding when a new relayer is added, and a return to the queue once that relayer's transaction is mined. Redis locks around relayer use stop two workers from picking the same account.

After the transaction is sent

Submitting is the easy half. I handled the rest of the lifecycle: status tracking, resubmission, a retry service, nonce-error detection, and a receipt returned to the caller. Networks that support EIP-1559 use that gas pricing. Fallback transactions cover the case where the first submission path fails.

Running it

The operational pieces were health and admin endpoints, WebSocket events for transaction status, and Slack alerts. Configuration is encrypted, and the same process can serve more than one network.

A way to see the flow

The ERC-4337 simulator walks a UserOperation through the paymaster, bundler, and EntryPoint in the browser, including a rejected sponsorship and a provider fallback. Addresses there are illustrative. The bundler itself is the source on GitHub.