Simplify ERC-4337 Transaction Signing
Author: Alchemy Team
We’re thrilled to announce the launch of UserOp Simulation. Transaction simulation has helped make web3 safer and more user-friendly. Today, we’re excited to bring that capability to ERC-4337 UserOps for smart accounts.
By simulating a UserOp, you can predict the expected outcome and display it in a human readable format. The UserOp Simulation API returns all asset changes, approval changes, and onchain reversions.
Developers can use Account Kit to add UserOp Simulation with a single line of code today!
Ready to learn more? Let’s dive in!
A recap: Transaction Simulation for Externally Owned Accounts
Back in January, Transaction Simulation made transaction signing less opaque, by giving users full visibility into the expected outcome of their transactions.
Without simulation, users would sign transactions blindly and trust that the app was initiating the intended transaction.
The suite of Transaction Simulation APIs solved this problem for EOA wallet users by greatly simplifying the user experience for signing a transaction. It also helped keep users safe by making malicious transactions more obvious
But a new type of wallet is taking the ecosystem by storm: ERC-4337 smart accounts.
Launching today: UserOp Simulation for ERC-4337 Smart Accounts
ERC-4337 smart accounts have taken off this year with over 1.3M accounts deployed onchain. Smart accounts are the best way to build web2 UX in a web3 app, and simulation is a critical component.
The trick is that smart accounts don’t send transactions like a normal EOA wallet. Instead, they send User Operations – a meta transaction defined by the ERC-4337 standard.
Today, we’re releasing the first ERC-4337 UserOp Simulation API to help developers build mainstream checkout experiences for users.
With UserOp Simulation:
🔶 Unlock transparency, clearly displaying to users the expected outcomes of their UserOps.
🔶 View results in a format that is ABI decoded, human readable, and inclusive of all relevant metadata.
🔶 Use Account Kit to integrate UserOp Simulation with just one line of code.
🔶 Access improved security and avoid submitting UserOps that are predicted to fail.
UserOp Simulation is the newest addition to a suite of APIs and tools, built to make using SCAs easy.
How it works
There are two ways that Account Kit supports UserOperation simulation:
- Use the withAlchemyUserOpSimulation middleware to simulate every UserOp before sending.
- Use the simulateUserOperationAssetChanges method to simulate UserOps selectively, an alternative to always running simulation.
The Account Abstraction product suite
Alchemy's Account Kit is a complete toolkit for developers to embed smart accounts in your app with social login, gas abstraction, batch transactions, and more. Here's everything that's included:

🟧 aa-sdk: a flexible library to integrate, deploy, and use smart accounts
🟧 Light Account: a gas-optimized ERC-4337 smart contract account
🟧 Signers: integrations with your favorite social login and passkey providers
🟧 Gas Manager APIs: a programmable API to sponsor gas fees in your app
🟧 Bundler APIs: built in Rust to achieve high performance and high-reliability
🟧 Custom Webhooks: notify users when their user operations complete
Start simulating today
Start simulating ERC-4337 UserOps today with Alchemy's developer tools.
Alchemy Newsletter
Be the first to know about releases
Sign up for our newsletter
Get the latest product updates and resources from Alchemy
By entering your email address, you agree to receive our marketing communications and product updates. You acknowledge that Alchemy processes the information we receive in accordance with our Privacy Notice. You can unsubscribe anytime.
Related articles

Tempo Mainnet Is Live: Introducing the Machine Payments Protocol on Alchemy
Tempo Mainnet is live with the Machine Payments Protocol (MPP)—an open standard for how AI agents pay for services. Alchemy provides Day 1 mainnet infrastructure and full MPP support.

Pharos Support Is Live on Alchemy
Pharos, a Layer 1 built for real-world asset circulation and institutional DeFi, is now supported on Alchemy. Learn what makes it different and what teams are already building.

TRON Support Is Live on Alchemy
You can now build on TRON, the second largest blockchain by stablecoin marketcap, with Alchemy.