Bring a pot of water to the boil and blanch four-angled beans. Drain well and set aside.
Combine ingredients for spice paste in a food processor and blend until smooth.
Heat oil in a wok and fry the spice paste until fragrant. Put in the prawns and stir-fry for a couple of minutes before adding shallot and grated coconut. Stir to combine.