A relay has two ‘coil wires’ or ‘coil pins’. Just connect the two coil wires like how you would wire a sprinkler valve. Regarding which two are the coil wires, you have to check the relay’s datasheet. For example, on the Omron relay:
the two gold colored pins at the bottom are the coin pins.
For the RT314524 relay, check the datasheet: