Start by peeling and cubing the potatoes, then boil them in a saucepan with some salt over medium heat.
While the potatoes are boiling, sauté the chopped onion in olive oil or butter in a separate pan until they turn golden brown.
Once the potatoes are cooked, drain the water and mash them. Then, stir in the fried onions and season with salt and pepper.
As the potato mixture cools, start preparing the dough. In a large bowl, combine flour, hot water, salt, and an egg to form a soft dough.
Take small portions of this dough, roll them into sausage shapes, and then cut off walnut-sized pieces with a knife.
Next, flatten each piece with a rolling pin, place some potato filling in the center, and shape it into a dumpling.
Place these dumplings on a board and freeze them for about 20 minutes.
Meanwhile, boil salted water in a saucepan. Add dumplings and cook until they float, then 5-7 minutes more. Then, use a slotted spoon to transfer the cooked dumplings into a bowl. Add some butter and the remaining fried onions, then stir everything together.