The clerk of the district court in whose name a security is taken, or by whom an investment is made, and the clerk’s successor in office, must receive the interest and principal as it becomes due and apply and invest the same as the court may direct, and must deposit with the county treasurer all securities taken, and, in a book provided and kept for that purpose in the clerk’s office, must keep an account, free for inspection by all persons, of investments and moneys received by the clerk thereon, and the disposition thereof.