Which immunoglobulin class is most abundant in serum and provides the majority of antibody-based immunity against invading pathogens?