Hi,
Closest serial # to the one you posted indicates your Spencer Carbine MAY HAVE been issued to Company F, 19th New York Volunteer Cavalry sometime in early 1865. Best information I can suggest.
Please read my Spencer Serial # Disclaimer posted on the first page of the SSS Home Page.
Two Flints