Docs

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,
accountContract,
sponsorGas,
overrides,
});

Parameters

Returns

  • The unsigned user operation