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: UserOperationV06 | UserOperationV07;}): Promise<EstimationResult>;
The options for estimating the gas cost of a user operation.
let args: { options: BundlerOptions; userOp: UserOperationV06 | UserOperationV07;};
let returnType: Promise<EstimationResult>;
The estimated gas cost of the user operation.