A trustee shall fulfill the purposes of the trust as declared at its creation, or as subsequently amended, and shall follow all the directions of the trustor given at that time, except as modified. For purposes of modifications by consent of all parties interested and modifications upon approval by the court, the provisions of chapter 55-18 apply to such modifications.
SDCL 55-3-5