Each railroad authorized to construct, operate, or maintain a road within this state, may take and hold such voluntary grants of real and other property as are made to it, to aid in the construction, maintenance, and accommodation of its road. Any real property received by voluntary grant shall be held and used for the purposes of the grant only.
SDCL 49-16A-76