estimateUserOpGas

Estimate the gas cost of a user operation.

Example

import { estimateUserOpGas } from "thirdweb/wallets/smart";
const gasCost = await estimateUserOpGas({
userOp,
options,
});

Parameters

Returns

The estimated gas cost of the user operation.