Legume.

A pod, such as that of a pea or bean, that splits into two valves with the seeds attached to one edge of the valves