My question is can I wire a plug to the transformer? yes but, see the qualifier below.
Also does the transformer need to be put in some kind of box? Transformer - no but, the wire splice from plug to transformer yes.
I would solder the wires together and use heat shrink over the connection, this might get you around the requirement of splices having to be enclosed.
Last edited by kok328; 01-29-2012 at 07:26 AM.