Finely chop the onion and green onion.
Beat the eggs and season with salt.
Heat oil in a pan and stir-fry the green onion to make scallion oil.
Add the onion and stir-fry until translucent.
Add the rice and stir-fry evenly.
Add the black bean sauce and mix while stir-frying.
Pour in the beaten eggs and quickly stir-fry to combine.
Taste and season with more salt if needed.
Transfer the finished fried rice to a bowl.