bundleUserOp

Bundle a user operation.

Example

import { bundleUserOp } from "thirdweb/wallets/smart";
const userOpHash = await bundleUserOp({
userOp,
options,
});
function bundleUserOp(args: {
options: BundlerOptions;
userOp: UserOperationV06 | UserOperationV07;
}): Promise<`0x${string}`>;

Parameters

The options for bundling a user operation.

Type

let args: {
options: BundlerOptions;
userOp: UserOperationV06 | UserOperationV07;
};

Returns

let returnType: Promise<`0x${string}`>;

The bundle hash of the user operation.