Estimate the gas cost of a user operation.
import { estimateUserOpGasCost } from "thirdweb/wallets/smart"; const gasCost = await estimateUserOpGasCost({ transactions, adminAccount, client, smartWalletOptions,});
function estimateUserOpGasCost(args: { adminAccount: Account; client: ThirdwebClient; smartWalletOptions: SmartWalletOptions; transactions: Array<PreparedTransaction>;}): Promise<{ ether: string; wei: bigint }>;
The options for estimating the gas cost of a user operation.
let args: { adminAccount: Account; client: ThirdwebClient; smartWalletOptions: SmartWalletOptions; transactions: Array<PreparedTransaction>;};
let returnType: Promise<{ ether: string; wei: bigint }>;
The estimated gas cost of the user operation.