Gram flour (chickpea flour) is traditional for onion bhajis/pakora, creating a light, crispy, and not-too-heavy coating. It also adds a nutty, earthy flavor and is gluten-free.
Do not start with a wet batter; instead, add dry ingredients first to avoid soggy onion bhajis.