signUserOp
Sign a user operation.
import { signUserOp } from "thirdweb/wallets/smart"; const userOp = createUnsignedUserOp(...); const signedUserOp = await signUserOp({ userOp, chain, adminAccount,});
function signUserOp(args: { chain: { readonly blockExplorers?: Array<{ apiUrl?: string; name: string; url: string; }>; readonly experimental?: { increaseZeroByteCount?: boolean }; readonly faucets?: Array<string>; readonly icon?: Icon; readonly id: number; readonly name?: string; readonly nativeCurrency?: { decimals?: number; name?: string; symbol?: string; }; readonly rpc: string; readonly testnet?: true; }; entrypointAddress?: string;
let args: { chain: { readonly blockExplorers?: Array<{ apiUrl?: string; name: string; url: string; }>; readonly experimental?: { increaseZeroByteCount?: boolean }; readonly faucets?: Array<string>; readonly icon?: Icon; readonly id: number; readonly name?: string; readonly nativeCurrency?: { decimals?: number; name?: string; symbol?: string; }; readonly rpc: string; readonly testnet?: true; }; entrypointAddress?: string;};
The user operation with the signature field populated