Crack the eggs into a bowl and beat them well.
Finely chop the onion and green onion.
Heat cooking oil in a pan, then sauté the onion and green onion.
Pour the beaten eggs into the pan and gently stir until cooked.
Season with salt and pepper.
Once done, transfer to a plate and serve.