Rinse basmati under running water 2-3 times and then soak in cold water for 30 minutes. Drain and set aside.
To prepare the masala base place mint leaves, coconut, onion, garlic, ginger paste and green chiles in blender. Blend with a little water to make a purée.
Select sauté mode on your instant pot. Add ghee and once it's hot add cumin seeds, bay leaves, cinnamon stick, cloves and peppercorns.
Sauté for 45 seconds and then add chopped cilantro, edamame or peas and cook for another minute.
Add the masala and sauté for 2-3 minutes.
Add potatoes, turmeric powder, garam masala and cumin powder. Mix well and add the drained rice, water and salt. Mix well.
Put lid on instant pot and cook on high pressure in manual mode for 8 minutes. Let it naturally release the pressure for 10 minutes and then open the valve to release any remaining pressure.
Adjust salt to taste and garnish with mint leaves and serve hot.