Crack the eggs into a bowl and whisk well.
Finely chop the onion and green onion.
Heat cooking oil in a pan and sauté the onion and green onion.
When the onion turns translucent, pour in the eggs and cook gently over low heat, stirring.
Put rice in a bowl and place the cooked eggs over the rice.
Serve with soy sauce or other sauce of your choice.