Finely chop the onion, carrot, and green onion.
Heat oil in a pan and stir-fry the green onion to make scallion oil.
Add the onion and carrot and stir-fry.
Add the rice and stir-fry, mixing well with the ingredients.
Season with soy sauce and salt to taste.
Add eggs to stir-fry, or top with egg at the end.