Simplify ERC-4337 transaction signing
Smart accounts are the best way to build web2 UX in a web3 app.
And over 1.3M smart accounts were deployed on-chain in 2023.
But to date, there’s been no way to predict the expected outcome of a UserOp.
Today, that changes.
UserOp Simulation lets developers:
🔶 Unlock transparency, by clearly displaying expected results to users
🔶 View results in an ABI decoded, human readable format
🔶 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 Account Kit and the suite of Account Abstraction APIs and tooling, built to make using Smart Contract Accounts easy.
UserOp Simulation for ERC-4337 Smart Accounts
With UserOp Simulation you can predict the expected outcome of a UserOp and display human readable results for:
🔶 all asset changes
🔶 all approval changes
🔶 all on-chain reversions
Ready to get started?
Follow this guide to add UserOp Simulations to your app.
By the end of the guide, you will have a basic understanding of two ways to access UserOp Simulation from the aa-sdk:
1️⃣ withAlchemyUserOpSimulation
to simulate every UserOp before sending.
2️⃣ simulateUserOperationAssetChanges
to simulate selective UserOps.
Get started with Account Kit and learn how to Simulate UserOps.