Finely chop the onion and green onion.
Beat the eggs and season with salt.
Heat oil in a pan and sauté the green onion to make scallion oil.
Add the onion and sauté until translucent.
Pour in the beaten eggs and scramble.
Add the rice and stir-fry everything together until well mixed.
Season with soy sauce and pepper to finish.