Estimate the gas cost of a user operation.
import { estimateUserOpGas } from "thirdweb/wallets/smart"; const gasCost = await estimateUserOpGas({ userOp, options,});
function estimateUserOpGas(args: { options: BundlerOptions; userOp: UserOperation;}): Promise<EstimationResult>;
The options for estimating the gas cost of a user operation.
let args: { options: BundlerOptions; userOp: UserOperation };
let returnType: Promise<EstimationResult>;
The estimated gas cost of the user operation.