• Type guard to check if a user operation is a v0.6.0 operation. Checks for the presence of paymasterAndData and initCode fields which are specific to v0.6.0.

    Parameters

    Returns userOp is {
        callData: `0x${string}`;
        callGasLimit: bigint;
        initCode: `0x${string}`;
        maxFeePerGas: bigint;
        maxPriorityFeePerGas: bigint;
        nonce: bigint;
        paymasterAndData: `0x${string}`;
        preVerificationGas: bigint;
        sender: `0x${string}`;
        signature: `0x${string}`;
        verificationGasLimit: bigint;
    }

    True if the operation is a v0.6.0 operation

    if (isUserOperationV6(userOp)) {
    // Access v0.6.0 specific fields
    console.log(userOp.paymasterAndData);
    console.log(userOp.initCode);
    }