Dissolve miso paste well in water.
Heat cooking oil in a pan and sauté minced onion.
When the onion becomes translucent, add the miso mixture.
Add sugar, soy sauce, and mirin.
Simmer over low heat, stirring for 5 minutes.
Turn off the heat and finish with sesame seeds and chopped green onions.