What is the basis of blood groupings?

Red cell antigens. Lipids in the membrane of red cells have carbohydrates, sugars, attache to them. The variation in the types of sugars determine most the blood groups, especially ABO blood groups.