Sign a user operation.
import { signUserOp } from "thirdweb/wallets/smart"; const userOp = createUnsignedUserOp(...); const signedUserOp = await signUserOp({ userOp, chain, adminAccount,});
function signUserOp(args: { adminAccount: Account; chain: Readonly<ChainOptions & { rpc: string }>; entrypointAddress?: string; userOp: UserOperation;}): Promise<UserOperation>;
let args: { adminAccount: Account; chain: Readonly<ChainOptions & { rpc: string }>; entrypointAddress?: string; userOp: UserOperation;};
let returnType: Promise<UserOperation>;
The user operation with the signature field populated