Skip to main content
Simulates a ZeroDev user operation and returns a breakdown of expected asset changes, security validation results, and optionally an estimated gas fee — before the operation is submitted to the network. Returns the same result shape as simulateEvmTransaction, since user operations are ultimately EVM transactions. Powered by Blockaid for security validation.

Installation

Usage

Parameters

Returns

Promise<EvmSimulationResult> — an object with the following fields:
When the operation is eligible for gas sponsorship, feeData.nativeAmount is 0n — indicating the user will not pay gas. Use canSponsorUserOperation to check sponsorship eligibility before simulating.

Examples

Token transfer

With gas fee estimation

Security validation

Error handling

Last modified on February 20, 2026