It may be easier just to get a 24-12v inverter as you only need to power the relay. They are cheap enough these days and readily available.