Get the hash of a user operation.
import { getUserOpHash } from "thirdweb/wallets/smart"; const userOp = await createUnsignedUserOp(...);const userOpHash = await getUserOpHash({ client, userOp, chain,});
function getUserOpHash(args: { chain: Readonly; client: ThirdwebClient; entrypointAddress?: string; userOp: UserOperationV06 | UserOperationV07;}): Promise<`0x${string}`>;
The options for getting the user operation hash
let args: { chain: Readonly; client: ThirdwebClient; entrypointAddress?: string; userOp: UserOperationV06 | UserOperationV07;};
let returnType: Promise<`0x${string}`>;
The user operation hash