Every railroad, canal or turnpike corporation operated, or partly operated in this State, shall maintain one office therein, where transfers of its stock shall be made and where its books shall be kept for inspection by any stockholder or creditor of such corporation; in which shall be recorded the amount of capital stock subscribed or paid in, and the amounts owned by them respectively, the transfer of said stock, and the names and places of residence of the officers.