Combine chicken broth, soy sauce, ketchup, and cornstarch in a bowl. Stir to mix. Set aside.
Heat the oil in a wok or large pan. Once the oil gets hot, saute the garlic, onion, and ginger.
Once the onion gets soft, add the chili and snake beans. Stir fry in high heat for 2 to 3 minutes.
Add the crab. Continue to stir fry for 5 minutes.
Sprinkle salt and ground black pepper. Pour-in the chicken broth mixture and then toss to coat. Cook for 1 minute.
Pour the beaten egg and stir fry for 3 minutes.
Transfer to a serving plate. Serve with warm white rice.
Share and enjoy!