getUserOpHash

Get the hash of a user operation.

Example

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}`>;

Parameters

The options for getting the user operation hash

Type

let args: {
chain: Readonly;
client: ThirdwebClient;
entrypointAddress?: string;
userOp: UserOperationV06 | UserOperationV07;
};

Returns

let returnType: Promise<`0x${string}`>;
  • The user operation hash