estimateUserOperationGas, this function is synchronous and does not make any network
calls — it computes the fee from gas values you already have (e.g., after calling
estimateUserOperationGas or building a user operation manually).
Installation
Usage
Parameters
Returns
EvmTransactionFeeData (synchronous — not a Promise):
Examples
Display fee before sending
With USD conversion
Error handling
Related functions
- estimateUserOperationGas - Estimate gas cost for a user operation (makes network calls)
- simulateZerodevUserOperation - Full simulation with asset diffs and security validation
- sendUserOperation - Send a user operation
- calculateEvmTransactionFee - Fee estimation for standard EVM transactions
- getNetworksData - Get network configuration objects