createUnsignedUserOp

Creates an unsigned user operation from a prepared transaction.

Example

import { createUnsignedUserOp } from "thirdweb/wallets/smart";
const transaction = prepareContractCall(...);
const userOp = await createUnsignedUserOp({
transaction,
factoryContract,
accountContract,
adminAddress,
sponsorGas,
overrides,
});

Parameters

Returns

  • The unsigned user operation