Rinse the uncooked rice under running water until the water runs clear.
In a pot, combine the rinsed rice and 2 cups of water. Bring it to a boil, cover, reduce the heat, and let it simmer until the rice is tender, about 10-15 minutes. Fluff the rice with a fork and let it cool completely.
Heat a wok or large skillet over high heat. Add 1 tablespoon of oil, and stir-fry the cooled rice for about 5 minutes.
Make a well in the center of the wok. Add the remaining oil, onion, garlic, and carrots. Stir-fry for 1 minute until the vegetables slightly soften.
Create another well in the rice mixture. Add sesame oil and beaten eggs. Scramble the eggs directly in the pan, then mix with the rice.
Add soy sauce, peas, salt, and white pepper. Stir and cook until heated through.
Garnish the finished dish with green onions before serving.